|
@@ -159,6 +159,9 @@ class DevicePushService:
|
|
|
cls.is_send_app_push(
|
|
|
params['event_type'], params['event_tag'], params['app_push_config'], params['app_push'], uid)
|
|
|
|
|
|
+ # 低功耗产品推送,休眠702、低电量704提醒,并且detection=0,0标识单事件类型,1标识多事件类型
|
|
|
+ is_app_push = True if params['event_type'] in [702, 704] and params['detection'] == 0 else is_app_push
|
|
|
+
|
|
|
save_equipment_info = False
|
|
|
equipment_info_key = EquipmentInfoService.randoms_choice_equipment_info_key()
|
|
|
LOGGING.info('***保存推送消息uid:{},push_list:{}'.format(uid, params['uid_set_push_list']))
|
|
@@ -460,8 +463,11 @@ class DevicePushService:
|
|
|
event_list = []
|
|
|
if event_tag:
|
|
|
event_list = [int(event) for event in event_tag.split(',') if event]
|
|
|
- if 702 in event_list:
|
|
|
- event_list.remove(702)
|
|
|
+
|
|
|
+ events_to_remove = [702, 703, 704]
|
|
|
+ for event in events_to_remove:
|
|
|
+ if event in event_list:
|
|
|
+ event_list.remove(event)
|
|
|
if lang == 'cn':
|
|
|
if event_type == 51:
|
|
|
msg_type = '检测到画面变化'
|