From f888e82b0042ad87a05fad06c611d8d46984a784 Mon Sep 17 00:00:00 2001 From: surenjun Date: Thu, 15 May 2025 11:35:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20512[7]=E5=8F=82=E6=95=B0=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/judgeSDK/judge.ts | 7 +++++-- test.bat | 13 +++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 test.bat diff --git a/entry/src/main/ets/pages/judgeSDK/judge.ts b/entry/src/main/ets/pages/judgeSDK/judge.ts index 8dfdbdb4..b330d72f 100644 --- a/entry/src/main/ets/pages/judgeSDK/judge.ts +++ b/entry/src/main/ets/pages/judgeSDK/judge.ts @@ -1215,10 +1215,13 @@ export default class Judge { } else { //收到综合评判语音时,显示综合评判弹窗 if(code[0] == 'zhpp'){ + const param512 = (this.judgeUI.judgeConfigObj['512'] || '').split(','); this.judgeUI.isDeductedPopShow = false clearTimeout(this.deductedPopShowTimer) - this.judgeUI.isDeductedPopShow = true - this.judgeUI.defaultTabIndex = 1 + if(param512[7] != 0){ + this.judgeUI.isDeductedPopShow = true + this.judgeUI.defaultTabIndex = 1 + } this.isEndTip = true } avPlayer.playAudio([`voice/${code[0]}.mp3`]) diff --git a/test.bat b/test.bat new file mode 100644 index 00000000..f61d21ff --- /dev/null +++ b/test.bat @@ -0,0 +1,13 @@ +@echo off + +set TOOLCHAIN_PATH=.\win + +cd %TOOLCHAIN_PATH% + +.\hdc.exe kill +.\hdc.exe shell hilog -w stop +.\hdc.exe shell hilog -r + +echo "操作完成" + +pause From 048a60baebc7fd224b5f66d6ab43511edaa09ec0 Mon Sep 17 00:00:00 2001 From: surenjun Date: Thu, 15 May 2025 16:55:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=B8=89?= =?UTF-8?q?=E4=BB=A3=E6=9C=BAudp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/common/utils/UdpClientByCenter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/entry/src/main/ets/common/utils/UdpClientByCenter.ts b/entry/src/main/ets/common/utils/UdpClientByCenter.ts index 687fc80f..a254069f 100644 --- a/entry/src/main/ets/common/utils/UdpClientByCenter.ts +++ b/entry/src/main/ets/common/utils/UdpClientByCenter.ts @@ -312,6 +312,7 @@ export default class UdpClientByCenter { if (terType == 2) { //三型机 this.onMessage_1Callback = callback; + this.udp && this.udp.off('message', this.message_1Fn); this.udp && this.udp.on('message', this.message_1Fn); } else { this.retClass.receiveMsg(callback)