| 
					
				 | 
			
			
				@@ -37,7 +37,7 @@ function getApp(key) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         id: -1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         port: -1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         childProcess: undefined, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        nowBalance: 0.0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        nowBalance: -1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         messlist: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         threadStatus: RobotStatus.STOPPED, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         errorMessage: "成功", 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -260,7 +260,7 @@ async function run(param) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             robotStatus(app) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             app.childProcess = undefined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             app.status = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            app.nowBalance = 0.0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            app.nowBalance = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         app.threadStatus = RobotStatus.RUNNING 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         robotStatus(app) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -432,10 +432,11 @@ function robotAmount(app) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         http.request_get(`${accUrl}/account`, {...config.headers}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             .then((data) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 var d = JSON.parse(data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                app.nowBalance = d.now_balance 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //余额有变动上报一次 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // logger.info(`余额当前:${(app.nowBalance + "")}--${(d.now_balance + "")}--`); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if ((app.nowBalance + "") !== (d.now_balance + "")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    app.nowBalance = d.now_balance 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // if ((app.nowBalance + "") !== (d.now_balance + "")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     // http.request_post(`${config.reportedUrl}/report/amountReport`, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     //     "robotId": app.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     //     "amount": d.now_balance 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -447,7 +448,7 @@ function robotAmount(app) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     //     }).catch((error) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     //     logger.error(`#####################汇报:余额上报错误: ${error.message}`); // 处理可能发生的错误 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }).catch((error) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             logger.error(`#####################汇报:余额接口请求失败: ${error.message}`); // 处理可能发生的错误 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 |