From 0cb15e4c048a19cc80e91ded65106cb6437434a1 Mon Sep 17 00:00:00 2001 From: surenjun Date: Tue, 4 Mar 2025 10:20:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:tcp=E5=88=86=E5=8C=85=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/api/judgeNew.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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