Browse Source

余额上报bug修复

hl 11 months ago
parent
commit
19f651b86a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/Interval.js

+ 4 - 1
src/Interval.js

@@ -59,7 +59,10 @@ function reportAmount() {
     setInterval(() => {
         // logger.info('当前2',robot.appMap);
         robot.appMap.forEach((value, key) => {
-            if (value.threadStatus === robot.RobotStatus.RUNNING) {
+            var thisTime = new Date().getTime()
+            if (value.threadStatus === robot.RobotStatus.RUNNING &&
+                (thisTime - value.threadStartTime) > (1000 * 10)
+            ) {
                 robot.robotAmount(value)
             }
         });