微聊发语音未插卡的逻辑
authordxy15521469561 <1731678236@qq.com>
Wed, 12 Jul 2023 07:04:24 +0000 (15:04 +0800)
committerdxy15521469561 <1731678236@qq.com>
Wed, 12 Jul 2023 07:04:24 +0000 (15:04 +0800)
2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/appAlipay.py
2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/appWechat.py
2.sdk/project/K5/sdk/system/platform/ASR_1606/boards/EG810MCN_GA_ALIPAY/images/firmware_base_release_pack.zip

index ff4992f..3cd377f 100644 (file)
@@ -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)
index 6e128c9..4674d1f 100644 (file)
@@ -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")
index 2677f36..11fb78e 100644 (file)
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