From: dxy15521469561 <1731678236@qq.com> Date: Wed, 12 Jul 2023 07:04:24 +0000 (+0800) Subject: 微聊发语音未插卡的逻辑 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=e3bb07fd43e91d07e59a0e0e7d56ada70c6381ad;p=mirrors%2FASR1603_G5.git 微聊发语音未插卡的逻辑 --- diff --git a/2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/appAlipay.py b/2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/appAlipay.py index ff4992f0..3cd377ff 100644 --- a/2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/appAlipay.py +++ b/2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/appAlipay.py @@ -850,6 +850,12 @@ class Alipay_paycode(Screen): def update_alipy(self,e): EventMesh.publish("get_payment_code") + def lcd_on(self): + self.timer.start(10*1000,1,self.update_alipy) + + def lcd_off(self): + self.timer.stop() + def Close(self): self.timer.stop() EventMesh.publish("set_Alipay_Ui_isOpen",0) diff --git a/2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/appWechat.py b/2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/appWechat.py index 6e128c94..4674d1f4 100644 --- a/2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/appWechat.py +++ b/2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/appWechat.py @@ -370,9 +370,12 @@ class WechatScreen(Screen): Wechat_log("updata_list_show2") def talking_cb(self,e): - Wechat_log("talking_cb1") - EventMesh.publish("publish_message_event_ui",{"func":self.talking,"data":e}) - Wechat_log("talking_cb2") + if EventMesh.publish(constants.EVENT.GET_CONNECT) == 1:#有卡时触发sos报警 无卡时自动关机 + Wechat_log("talking_cb1") + EventMesh.publish("publish_message_event_ui",{"func":self.talking,"data":e}) + Wechat_log("talking_cb2") + else: + EventMesh.publish("load_screen", {"screen": "no_sim_popup_screen"}) #按下录音 def talking(self,e): Wechat_log("talking1") diff --git a/2.sdk/project/K5/sdk/system/platform/ASR_1606/boards/EG810MCN_GA_ALIPAY/images/firmware_base_release_pack.zip b/2.sdk/project/K5/sdk/system/platform/ASR_1606/boards/EG810MCN_GA_ALIPAY/images/firmware_base_release_pack.zip index 2677f364..11fb78eb 100644 Binary files a/2.sdk/project/K5/sdk/system/platform/ASR_1606/boards/EG810MCN_GA_ALIPAY/images/firmware_base_release_pack.zip and b/2.sdk/project/K5/sdk/system/platform/ASR_1606/boards/EG810MCN_GA_ALIPAY/images/firmware_base_release_pack.zip differ