|
@@ -47,7 +47,7 @@ class GatewayView(View):
|
|
|
|
|
|
equipment_info_list = []
|
|
|
now_time = int(time.time())
|
|
|
- device_user_id = '160879593527813800138000'
|
|
|
+ device_user_id = '154700384179113800138000'
|
|
|
try:
|
|
|
'''
|
|
|
# 查询推送数据
|
|
@@ -58,9 +58,21 @@ class GatewayView(View):
|
|
|
if not uid_push_qs.exists():
|
|
|
return response.json(173)
|
|
|
uid_push_list = [uid_push for uid_push in uid_push_qs]
|
|
|
- '''
|
|
|
+ nickname = uid_push_list[0]['uid_set__nickname']
|
|
|
+ device_nick_name = nickname if nickname else serial_number
|
|
|
+ detect_interval = uid_push_list[0]['uid_set__detect_interval']
|
|
|
+ detect_group = uid_push_list[0]['uid_set__detect_group']
|
|
|
|
|
|
event_type = int(event_type)
|
|
|
+ for uid_push in uid_push_list:
|
|
|
+ push_type = uid_push['push_type']
|
|
|
+ app_bundle_id = uid_push['appBundleId']
|
|
|
+ token_val = uid_push['token_val']
|
|
|
+ lang = uid_push['lang']
|
|
|
+ tz = uid_push['tz']
|
|
|
+ if tz is None or tz == '':
|
|
|
+ tz = 0
|
|
|
+ '''
|
|
|
local_date_time = CommonService.get_now_time_str(n_time=now_time, tz=0, lang='cn')
|
|
|
local_date_time = local_date_time[:10]
|
|
|
equipment_info_list.append(EquipmentInfoService.get_equipment_info_obj(
|