Ver Fonte

修复推送异常

zhangdongming há 1 ano atrás
pai
commit
208ba87de1
2 ficheiros alterados com 5 adições e 6 exclusões
  1. 0 1
      Controller/DetectControllerV2.py
  2. 5 5
      Service/DevicePushService.py

+ 0 - 1
Controller/DetectControllerV2.py

@@ -164,7 +164,6 @@ def push_and_save_data(**params):
     TIME_LOGGER.info('{}开始异步推送'.format(params['uid']))
     # 推送消息,生成推送数据列表
     result = DevicePushService.save_msg_push(**params)
-    TIME_LOGGER.info('{}APP消息推送result:{}'.format(params['uid'], result))
     # 保存推送数据
     TIME_LOGGER.info('{}开始异步存表'.format(params['uid']))
     save_success = DevicePushService.save_sys_msg(

+ 5 - 5
Service/DevicePushService.py

@@ -772,11 +772,11 @@ class DevicePushService:
     @staticmethod
     def is_type_push(event_type, event_tag, app_event_types):
         # 检查事件标签和应用事件类型是否都存在
-        if event_tag and app_event_types:
-            # 将事件标签按逗号分割成列表,并转换为整数类型
-            tag_list = [int(event) for event in event_tag.split(',') if event]
-            # 判断是否有任一标签允许应用提醒
-            return any(item in app_event_types for item in tag_list)
+        # if event_tag and app_event_types:
+        #     # 将事件标签按逗号分割成列表,并转换为整数类型
+        #     tag_list = [int(event) for event in event_tag.split(',') if event]
+        #     # 判断是否有任一标签允许应用提醒
+        #     return any(item in app_event_types for item in tag_list)
 
         # 检查事件类型和用户所选事件类型是否都存在,并判断事件类型在用户所选事件类型列表中
         # return event_type and app_event_types and event_type in app_event_types