Explorar o código

修复一键通话消息提示

zhangdongming hai 1 ano
pai
achega
f53f787c6c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Service/DevicePushService.py

+ 2 - 2
Service/DevicePushService.py

@@ -455,7 +455,7 @@ class DevicePushService:
                 msg_type = '摄像头唤醒'
             elif event_type in [606, 607]:
                 msg_type = '有人呼叫,请点击查看'
-            elif ai_type > 0 and event_list:
+            elif event_type not in [606, 607] and ai_type > 0 and event_list:
                 msg_type = ''.join([DevicePushService.get_event_type_text(lang, item, dealings_type)
                                     for item in event_list])
             if is_sys:
@@ -498,7 +498,7 @@ class DevicePushService:
                 msg_type = 'Camera wake'
             elif event_type in [606, 607]:
                 msg_type = 'Someone is calling, please click to view'
-            elif ai_type > 0 and event_list:
+            elif event_type not in [606, 607] and ai_type > 0 and event_list:
                 msg_type = ''.join([DevicePushService.get_event_type_text(lang, item, dealings_type)
                                     for item in event_list])
             if is_sys: