feat:tcp分包更新
This commit is contained in:
		
							parent
							
								
									a44e0e455e
								
							
						
					
					
						commit
						0cb15e4c04
					
				| @ -26,6 +26,11 @@ export default async function writeObjectOutNew(data,filePath): Promise<WR> { | ||||
|   const params = await getParams(jkid, drvexam); | ||||
|   const {wglb,jkxlh,glbm,jgbh,sjbs} = basic; | ||||
| 
 | ||||
|   const reqData = { | ||||
|     wglb,jkxlh,glbm,jgbh,sjbs, | ||||
|     data:params.data, | ||||
|     file:params.file | ||||
|   } | ||||
|   if(filePath){ | ||||
|     await fileUtil.editFile(`${filePath}/wuxi_exam_data.txt`,JSON.stringify({ | ||||
|       wglb,jkxlh,glbm,jgbh,sjbs, | ||||
| @ -38,7 +43,7 @@ export default async function writeObjectOutNew(data,filePath): Promise<WR> { | ||||
|   console.info('surenjun','调用新监管') | ||||
|   let temp | ||||
|   try { | ||||
|     temp = await tcp2ByteRequest(drvexam) | ||||
|     temp = await tcp2ByteRequest(reqData) | ||||
|   }catch (e){ | ||||
|     console.log("新监管错误") | ||||
|     temp = e | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user