fix: 优化了评判代码

This commit is contained in:
wangzhongjie 2025-10-15 15:17:29 +08:00
parent fff89ecf75
commit f57a04521c
2 changed files with 2 additions and 3 deletions

View File

@ -886,7 +886,6 @@ export class BaseJudge {
that.isExamEnd = true that.isExamEnd = true
return return
} }
//成绩合格 //成绩合格
if (isAllProjectsEnd && totalScore >= passingScore && !that.isEndTip) { if (isAllProjectsEnd && totalScore >= passingScore && !that.isEndTip) {
if (examSubject == '2') { if (examSubject == '2') {

View File

@ -1,6 +1,6 @@
// 处理worker线程的消息tcp拿差分改正数,udp给后置机 // 处理worker线程的消息tcp拿差分改正数,udp给后置机
import worker, { ErrorEvent, MessageEvents, ThreadWorkerGlobalScope } from '@ohos.worker'; import worker, { ErrorEvent, MessageEvents, ThreadWorkerGlobalScope } from '@ohos.worker';
import { WorkerTag } from '../config'; import { SerialPortTag, WorkerTag } from '../config';
import { import {
CenterCallBackMsgType, CenterCallBackMsgType,
EnvironmentConfigurationType, EnvironmentConfigurationType,
@ -70,7 +70,7 @@ function getDataFn(config: EnvironmentConfigurationType) {
// 需要观察 // 需要观察
// console.log(WorkerTag, "后置机消息", data) // console.log(WorkerTag, "后置机消息", data)
const res = await SerialPortService.getData() const res = await SerialPortService.getData()
// console.log(SerialPortTag, "档位原始数据", res) console.log(SerialPortTag, "档位原始数据", res)
if (res.length > 0) { if (res.length > 0) {
const dataArray = data.split(","); const dataArray = data.split(",");
// 替换data的第28位 // 替换data的第28位