Browse Source

修复时间间距判断问题

龚成明 2 years ago
parent
commit
6516b305db
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scripts/one-pro.js

+ 2 - 1
scripts/one-pro.js

@@ -34,7 +34,8 @@ const pricesHandler = function(context, task) {
       const percentageCondition = percentage > Config.percentageLimit
 
       const isNoPrevHandleTime = !token.prevHandleTime
-      const timeCondition = isNoPrevHandleTime || new Date().getTime() > token.prevHandleTime + Config.handleSpaceHours * (60 * 1000)
+      const isTimeCover = new Date().getTime() > token.prevHandleTime + Config.handleSpaceHours * (60 * 60 * 1000)
+      const timeCondition = isNoPrevHandleTime || isTimeCover
 
       return percentageCondition && timeCondition
     })()