Explorar el Código

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

hl hace 1 año
padre
commit
c065f1e890
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)