Compare commits

..

No commits in common. "6d0a2589ba9a8918ecf8743c4602c0c5f570f6e6" and "29332c5ae8b979cbdd20ffe51a0c75f2d8d4ea67" have entirely different histories.

3 changed files with 12 additions and 17 deletions

View File

@ -196,3 +196,4 @@ export async function uploadHarmonyLiCheng(data) {
method: 'post',
})
}

View File

@ -36,7 +36,7 @@ export default async function writeObjectOutNew(data,filePath): Promise<WR> {
// let connectTimeout = sjbs === '02-21-000014' ?60000:1
console.info('surenjun','调用监管')
console.info('surenjun','调用监管')
const temp = await request({
host: globalThis.JGHOST,
@ -69,13 +69,12 @@ export default async function writeObjectOutNew(data,filePath): Promise<WR> {
await fileUtil.initFolder(filePath);
fileUtil.editFile(`${filePath}/wuxi_exam_data.txt`,JSON.stringify(temp) +`\n`);
}
// const {code} = temp;
// if(code == '2300007' || code == '2300028'){
// return await writeObjectOutNew(params,filePath)
// }else{
// return temp
// }
return temp
const {code} = temp;
if(code == '2300007' || code == '2300028'){
return await writeObjectOutNew(params,filePath)
}else{
return temp
}
}

View File

@ -72,7 +72,6 @@ export default class Judge {
this.kfArr = judgeUI.kfArr
this.xmmcStr = '';
this.xmmcCode = '';
this.xmmcEndCode = undefined;
this.carztStr = '';
this.testKmItems = {};
// 考试回放配置
@ -388,7 +387,6 @@ export default class Judge {
this.xmmcStr = xmmcStr;
this.xmmcCode = xmmcCode;
this.xmmcSingleCode = xmmcSingleCode
this.xmmcEndCode = xmmcCode
this.xmdm = xmdm;
this.xmxh = xmxh;
this.judgeUI.isProjectIn = true
@ -486,7 +484,7 @@ export default class Judge {
case 10:{
const param611 = judgeConfigObj['611'] || '';
const [f,s] = param611.split('/')
const {xmdm,xmxh} = precast;
const {xmdm} = precast;
const xmmcCode = judgeUI.projectsObj[xmdm].projectCodeCenter;
const xmmcSingleCode = judgeUI.projectsObj[xmdm].projectCode;
// if(examSubject == 2 && ((xmdm == 0 && f == 1) || (xmdm == 1 && s == 1) || xmdm == 3)){
@ -600,7 +598,6 @@ export default class Judge {
console.info(judgeTag, `项目结束-${xmdm}-${projectsObj[xmdm].name}`)
await endProject(xmdm);
this.xmmcSingleCode = 0;
this.xmmcEndCode = undefined;
}, {isDelay: true})
}
}
@ -769,7 +766,7 @@ export default class Judge {
const carInfo = globalThis.carInfo;
const deviceNo = globalThis.deviceNo;
const { examSubject,plateNo,carNo } = carInfo;
const {judgeUI,getProjectInfo,fileLog,xmmcSingleCode,xmmcEndCode,filePath} = this;
const {judgeUI,getProjectInfo,fileLog,xmmcSingleCode,filePath} = this;
const {lsh,idCard,serialNumber,ksdd,projectsObj} = judgeUI
const time = await getCurrentTime();
const project = getProjectInfo(ksxm);
@ -793,7 +790,7 @@ export default class Judge {
ksxm: project == undefined
? (commonKsxm
? (projectsObj[commonKsxm].projectCodeCenter)
: (examSubject == 3 ? 30000 : (xmmcEndCode == undefined ? 10000 : xmmcEndCode)))
: (examSubject == 3 ? 30000 : 10000))
: project.projectCodeCenter ,
kfxm: kf.markcatalog,
kfxmmx: `${ksxm},${kf.markserial}`,
@ -1036,8 +1033,7 @@ export default class Judge {
const { examSubject ,plateNo} = carInfo;
const {judgeUI,ksjs,getPhoto,uploadProgressData,uploadDisConnectData,avPlayer,kfArr,judgeTask,filePath} = this;
const {lsh,idCard,serialNumber,kssycs,totalScore,judgeConfigObj,isAllProjectsEnd,passingScore} = judgeUI
//TODO 断网考试结束补传
// await uploadDisConnectData();
await uploadDisConnectData();
const time = await getCurrentTime();
const photoBase64 = await getPhoto();
const {d1,d2,d3,d4,d5} = ksjs
@ -1677,7 +1673,6 @@ export default class Judge {
private xmmcStr: string
private xmmcCode: string
private xmmcSingleCode: number
private xmmcEndCode?:number
private xmdm: string | number
private xmxh: string
private fileModel: FileModel