fix: 合并

This commit is contained in:
wangzhongjie 2025-10-14 16:57:37 +08:00
commit dcb826724e
3 changed files with 27 additions and 30 deletions

View File

@ -1,5 +1,5 @@
{
"lockfileVersion": 2,
"lockfileVersion": 1,
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
"specifiers": {},
"packages": {}

View File

@ -224,23 +224,22 @@ export class BaseJudge {
that.isExamEnd = true
that.isManual = true
} else {
const param302: number = Reflect.get(judgeUI.judgeConfigObj, '302')
const param342: number = Reflect.get(judgeUI.judgeConfigObj, '342')
const param512: number[] = (Reflect.get(judgeUI.judgeConfigObj, '512') || '').split(',');
const param302: string = Reflect.get(judgeUI.judgeConfigObj, '302')
const param342: string = Reflect.get(judgeUI.judgeConfigObj, '342')
const param512: string[] = (Reflect.get(judgeUI.judgeConfigObj, '512') || '').split(',');
if (judgeUI.singlePlay) {
// 单机模式
dConsole.info(JudgeTag + ' 单机模式结束 => ', judgeUI.isAllProjectsEnd)
if (judgeUI.isAllProjectsEnd && judgeUI.jl >= examMileage) {
// 成绩合格
if (totalScore >= passingScore && !that.isEndTip) {
if (judgeUI.examSubject == '3' && (param342 == 0 || param342 == 2) &&
(param302 != 6 && param302 != 7 && param302 != 8)) {
if (param512[7] != 0) {
clearTimeout(that.deductedPopShowTimer)
that.avPlayer?.playAudio(['voice/综合评判.mp3'])
judgeUI.isDeductedPopShow = true
judgeUI.defaultTabIndex = 1
that.isEndTip = true
if (judgeUI.examSubject == '3' && (param342 === "0" || param342 === "2" || !param342) && (param302 !== "6" && param302 !== "7" && param302 !== "8")) {
if (param512[7] !== "0") {
// clearTimeout(that.deductedPopShowTimer)
// that.avPlayer?.playAudio(['voice/综合评判.mp3'])
// judgeUI.isDeductedPopShow = true
// judgeUI.defaultTabIndex = 1
// that.isEndTip = true
return
}
} else {
@ -249,7 +248,7 @@ export class BaseJudge {
return
}
} else {
if (judgeUI.examSubject == '3' && (param302 == 4 || param302 == 5 || param302 == 7 || param302 == 8)) {
if (judgeUI.examSubject == '3' && (param302 === "4" || param302 === "5" || param302 === "7" || param302 === "8")) {
await examJudgeEndExam()
that.isExamEnd = true
return
@ -258,12 +257,13 @@ export class BaseJudge {
await examJudgeEndExam()
that.isExamEnd = true
}
} else {
}
else {
// 非单机模式
//成绩不合格
if (totalScore < passingScore) {
//科目三不合格报靠边停车
if (judgeUI.examSubject == '3' && param302 == 1) {
if (judgeUI.examSubject == '3' && param302 === "1") {
that.avPlayer?.playAudio([`voice/考试结束.mp3`]);
return
}
@ -284,14 +284,14 @@ export class BaseJudge {
return
}
//考试合格自动退出
if (judgeUI.examSubject == '3' && (param302 == 4 || param302 == 7) || param302 == 8) {
if (judgeUI.examSubject == '3' && (param302 === "4" || param302 === "7") || param302 === "8") {
await examJudgeEndExam()
that.isExamEnd = true
return
}
if (judgeUI.examSubject == '3' && (param342 == 0 || param342 == 2) &&
(param302 != 6 && param302 != 7 && param302 != 8)) {
if (param512[7] != 0) {
if (judgeUI.examSubject == '3' && (param342 === "0" || param342 === "2") &&
(param302 !== "6" && param302 !== "7" && param302 !== "8")) {
if (param512[7] !== "0") {
clearTimeout(that.deductedPopShowTimer)
judgeUI.isDeductedPopShow = false
that.avPlayer?.playAudio(['voice/综合评判.mp3'])
@ -418,7 +418,6 @@ export class BaseJudge {
// }
console.info(JudgeTag, '考试结束 end')
const param302 = judgeUI.judgeConfigObj.param_302;
judgeUI.generateExamRecordsDialogController.open();
let currentKssycs = 0;
let voiceURL = ''
if (judgeUI.examSubject === "2") {

View File

@ -1,20 +1,18 @@
{
"lockfileVersion": 2,
"lockfileVersion": 1,
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
"specifiers": {
"@ohos/hypium@1.0.19": "@ohos/hypium@1.0.19",
"@ohos/crypto-js@2.0.3": "@ohos/crypto-js@2.0.3"
"@ohos/crypto-js@2.0.3": "@ohos/crypto-js@2.0.3",
"@ohos/hypium@1.0.19": "@ohos/hypium@1.0.19"
},
"packages": {
"@ohos/hypium@1.0.19": {
"resolved": "https://ohpm.openharmony.cn/ohpm/@ohos/hypium/-/hypium-1.0.19.har",
"integrity": "sha512-cEjDgLFCm3cWZDeRXk7agBUkPqjWxUo6AQeiu0gEkb3J8ESqlduQLSIXeo3cCsm8U/asL7iKjF85ZyOuufAGSQ==",
"registryType": "ohpm"
},
"@ohos/crypto-js@2.0.3": {
"resolved": "https://ohpm.openharmony.cn/ohpm/@ohos/crypto-js/-/crypto-js-2.0.3.har",
"integrity": "sha512-LuHaR1kD5PxnOXnuR1fWvPwGtbed9Q/QGzk6JOh8y5Wdzvi8brPesODZiaWf9scOVRHsbTPOtZw91vWB35p1vQ==",
"registryType": "ohpm"
"integrity": "sha512-LuHaR1kD5PxnOXnuR1fWvPwGtbed9Q/QGzk6JOh8y5Wdzvi8brPesODZiaWf9scOVRHsbTPOtZw91vWB35p1vQ=="
},
"@ohos/hypium@1.0.19": {
"resolved": "https://ohpm.openharmony.cn/ohpm/@ohos/hypium/-/hypium-1.0.19.har",
"integrity": "sha512-cEjDgLFCm3cWZDeRXk7agBUkPqjWxUo6AQeiu0gEkb3J8ESqlduQLSIXeo3cCsm8U/asL7iKjF85ZyOuufAGSQ=="
}
}
}