| 
														
															@@ -18,7 +18,7 @@ function init() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     const app = express(); 
														 | 
														
														 | 
														
															     const app = express(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     const port = 3000; 
														 | 
														
														 | 
														
															     const port = 3000; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     // 中间件示例,用于处理JSON请求体 
														 | 
														
														 | 
														
															     // 中间件示例,用于处理JSON请求体 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    app.use(express.json()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    // app.use(express.json()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     app.use((req, res, next) => { 
														 | 
														
														 | 
														
															     app.use((req, res, next) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         var k = "$8gBV!f&L@E" 
														 | 
														
														 | 
														
															         var k = "$8gBV!f&L@E" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if ("timestamp" in req.headers) { 
														 | 
														
														 | 
														
															         if ("timestamp" in req.headers) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -87,9 +87,9 @@ function init() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     app.post('/execute', (req, res) => { 
														 | 
														
														 | 
														
															     app.post('/execute', (req, res) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // 获取发送过来的信息(请求体的数据) 
														 | 
														
														 | 
														
															         // 获取发送过来的信息(请求体的数据) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         const param = req.body; 
														 | 
														
														 | 
														
															         const param = req.body; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        logger.info(`body:`,JSON.stringify(param)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        logger.info('--web 启动',param); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         (async (param) => { 
														 | 
														
														 | 
														
															         (async (param) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            console.log('请求体:', param); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // console.log('请求体:', param); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             var executeType = param.executeType 
														 | 
														
														 | 
														
															             var executeType = param.executeType 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (executeType === "RUN") { 
														 | 
														
														 | 
														
															             if (executeType === "RUN") { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 await robot.run(param) 
														 | 
														
														 | 
														
															                 await robot.run(param) 
														 |