Pārlūkot izejas kodu

修改SD卡异常为706

locky 4 mēneši atpakaļ
vecāks
revīzija
233ba9f349

+ 1 - 1
AnsjerPush/config.py

@@ -147,7 +147,7 @@ APP_BUNDLE_DICT = {
     'com.ansjer.customizedc_a': 'PatrolSecure',
 }
 
-SYS_EVENT_TYPE_LIST = [702, 703, 704, 705]
+SYS_EVENT_TYPE_LIST = [702, 703, 704, 706]
 MULTI_CHANNEL_TYPE_LIST = [1, 2, 3, 4, 10001]
 
 # AI识别标签

+ 1 - 1
Object/enums/EventTypeEnum.py

@@ -8,7 +8,7 @@ from enum import Enum, unique
 class EventTypeEnumObj(Enum):
     ONE_CLICK_CALL = 606                # 一键通话
     VIDEO_CALL = 607                    # 视频通话
-    SD_CARD_ABNORMALITY = 705           # SD卡异常
+    SD_CARD_ABNORMALITY = 706           # SD卡异常
     PRESS_THE_DOORBELL = 1022           # 按下门铃
     CHILD_PROTECTION_MODE = 1023        # 儿童保护模式
     # 不限频推送事件类型列表

+ 2 - 2
Service/DevicePushService.py

@@ -610,7 +610,7 @@ class DevicePushService:
                 msg_type = '摄像头唤醒'
             elif event_type == 704:
                 msg_type = '电量低'
-            elif event_type == 705:
+            elif event_type == 706:
                 msg_type = 'SD卡异常,请重新插拔或格式化SD卡。'
                 if is_save_msg:
                     msg_type = 'SD卡异常,请重新插拔或格式化SD卡。如问题仍未解决,请联系在线客服。'
@@ -673,7 +673,7 @@ class DevicePushService:
                 msg_type = 'Camera wake'
             elif event_type == 704:
                 msg_type = 'low battery'
-            elif event_type == 705:
+            elif event_type == 706:
                 msg_type = 'SD card is abnormal. Please re-insert or format the SD card.'
                 if is_save_msg:
                     msg_type = 'SD card is abnormal, please re-insert or format the SD card. ' \