zhangchunrui před 1 měsícem
rodič
revize
c0e3c59ad3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      index.mjs

+ 1 - 1
index.mjs

@@ -211,8 +211,8 @@ async function sendToDiscordTradePair(pair) {
     if (!response.ok) {
       throw new Error(`Discord webhook 失败: ${response.status}`)
     }
-
     console.log(`✅ 已发送到 Discord: ${pair.poolAddress}`)
+    return true
   } catch (error) {
     console.error('发送到 Discord 交易对失败:', error)
     return false