diff --git a/entry/src/main/ets/api/judgeNew.ts b/entry/src/main/ets/api/judgeNew.ts index 8c9d40e7..8bbc4277 100644 --- a/entry/src/main/ets/api/judgeNew.ts +++ b/entry/src/main/ets/api/judgeNew.ts @@ -26,6 +26,11 @@ export default async function writeObjectOutNew(data,filePath): Promise { 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 { console.info('surenjun','调用新监管') let temp try { - temp = await tcp2ByteRequest(drvexam) + temp = await tcp2ByteRequest(reqData) }catch (e){ console.log("新监管错误") temp = e