|
@@ -772,15 +772,14 @@ 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
|
|
|
- return True
|
|
|
+ return event_type and app_event_types and event_type in app_event_types
|
|
|
|
|
|
@staticmethod
|
|
|
def is_push_notify_allowed_now(push_time_config):
|