feat:tcp分包更新

This commit is contained in:
surenjun 2025-03-04 10:20:03 +08:00
parent a44e0e455e
commit 0cb15e4c04

View File

@ -26,6 +26,11 @@ export default async function writeObjectOutNew(data,filePath): Promise<WR> {
const params = await getParams(jkid, drvexam); const params = await getParams(jkid, drvexam);
const {wglb,jkxlh,glbm,jgbh,sjbs} = basic; const {wglb,jkxlh,glbm,jgbh,sjbs} = basic;
const reqData = {
wglb,jkxlh,glbm,jgbh,sjbs,
data:params.data,
file:params.file
}
if(filePath){ if(filePath){
await fileUtil.editFile(`${filePath}/wuxi_exam_data.txt`,JSON.stringify({ await fileUtil.editFile(`${filePath}/wuxi_exam_data.txt`,JSON.stringify({
wglb,jkxlh,glbm,jgbh,sjbs, wglb,jkxlh,glbm,jgbh,sjbs,
@ -38,7 +43,7 @@ export default async function writeObjectOutNew(data,filePath): Promise<WR> {
console.info('surenjun','调用新监管') console.info('surenjun','调用新监管')
let temp let temp
try { try {
temp = await tcp2ByteRequest(drvexam) temp = await tcp2ByteRequest(reqData)
}catch (e){ }catch (e){
console.log("新监管错误") console.log("新监管错误")
temp = e temp = e