Просмотр исходного кода

修复一键通话消息提示

zhangdongming 1 год назад
Родитель
Сommit
f53f787c6c
1 измененных файлов с 2 добавлено и 2 удалено
  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: