| 
					
				 | 
			
			
				@@ -349,21 +349,29 @@ async function searchPositions(param) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var programName = param.programName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var strategyName = param.strategyName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var config = getRustConfig() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var app = getApp(key) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(app.port === -1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //相对路径存放 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var appPath = config.filePath + "/" + param.id + "/" + strategyName + "/" + programName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         const asName = appPath + "/" + newAppName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         const configPath = appPath + "/" + configName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         const appPort = param.callPort 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const command = `sudo ${asName} --config=${configPath} --port==${appPort} --run_mode=1 --robot_id=${checkId}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        exec(command, (error, stdout, stderr) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                logger.error(`命令执行失败~: ${command} 错误:${error}`); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            logger.info(`检查指令发送成功!`); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const command = `sudo ${asName} --config=${configPath} --port=${appPort} --run_mode=1 --robot_id=${checkId}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // exec(command, (error, stdout, stderr) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //     if (error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //         logger.error(`命令执行失败~: ${command} 错误:${error}`); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        logger.info(`检查指令发送成功!`); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        logger.info(command); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return resolve(true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |