فهرست منبع

修复一下输出逻辑

龚成明 2 سال پیش
والد
کامیت
b3176d1188
1فایلهای تغییر یافته به همراه8 افزوده شده و 8 حذف شده
  1. 8 8
      scripts/one-pro.js

+ 8 - 8
scripts/one-pro.js

@@ -23,19 +23,19 @@ const pricesHandler = function(context, task) {
     const percentage = NumKit.getSubFloat((DiffPrice / OneInchPrice) * 100, 2)
 
     // 价格非法的就不处理了
-    if ((() => {
-      if (!token.prevHandleTime) return true
-
-      const time = new Date().getTime()
-
-      return time > token.prevHandleTime + Config.handleSpaceHours * (60 * 1000)
-    })()) return
+    // if ((() => {
+    //
+    // })()) return
 
     const rows = [pair.toString(), OneInchPrice.toString(), BinancePrice.toString(), DiffPrice.toString(), percentage.toString()]
 
     // 识别到在拉盘
     const isLong = (() => {
-      return percentage > Config.percentageLimit
+      if (!token.prevHandleTime) return true
+
+      const time = new Date().getTime()
+
+      return percentage > Config.percentageLimit && time > token.prevHandleTime + Config.handleSpaceHours * (60 * 1000)
     })()
 
     if (isLong) {