Browse Source

修复bug,机器人死亡将余额设置为0

hl 1 year ago
parent
commit
c065f1e890
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/robot.js

+ 1 - 0
src/robot.js

@@ -260,6 +260,7 @@ async function run(param) {
             robotStatus(app)
             app.childProcess = undefined
             app.status = 0
+            app.nowBalance = 0
         });
         app.threadStatus = RobotStatus.RUNNING
         return resolve(true)