fix: 优化了评判代码
This commit is contained in:
		
							parent
							
								
									fff89ecf75
								
							
						
					
					
						commit
						f57a04521c
					
				| @ -886,7 +886,6 @@ export class BaseJudge { | ||||
|           that.isExamEnd = true | ||||
|           return | ||||
|         } | ||||
| 
 | ||||
|         //成绩合格 | ||||
|         if (isAllProjectsEnd && totalScore >= passingScore && !that.isEndTip) { | ||||
|           if (examSubject == '2') { | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| // 处理worker线程的消息tcp拿差分改正数,udp给后置机 | ||||
| import worker, { ErrorEvent, MessageEvents, ThreadWorkerGlobalScope } from '@ohos.worker'; | ||||
| import { WorkerTag } from '../config'; | ||||
| import { SerialPortTag, WorkerTag } from '../config'; | ||||
| import { | ||||
|   CenterCallBackMsgType, | ||||
|   EnvironmentConfigurationType, | ||||
| @ -70,7 +70,7 @@ function getDataFn(config: EnvironmentConfigurationType) { | ||||
|       // 需要观察 | ||||
|       // console.log(WorkerTag, "后置机消息", data) | ||||
|       const res = await SerialPortService.getData() | ||||
|       // console.log(SerialPortTag, "档位原始数据", res) | ||||
|       console.log(SerialPortTag, "档位原始数据", res) | ||||
|       if (res.length > 0) { | ||||
|         const dataArray = data.split(","); | ||||
|         // 替换data的第28位 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user