|
@@ -189,7 +189,7 @@ class NotificationView(View):
|
|
|
# android jpush
|
|
|
elif push_type == 2:
|
|
|
self.do_jpush(request_dict, ua, response)
|
|
|
- self.do_save_equipment_info(ua, n_time, channel, event_type)
|
|
|
+ self.do_save_equipment_info(ua, n_time, channel, event_type,is_st)
|
|
|
#############
|
|
|
# 阿里云主账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM账号进行API访问或日常运维,请登录 https://ram.console.aliyun.com 创建RAM账号。
|
|
|
|
|
@@ -344,7 +344,7 @@ class NotificationView(View):
|
|
|
except Exception as e:
|
|
|
return response.json(10, repr(e))
|
|
|
|
|
|
- def do_save_equipment_info(self, uaql, n_time, channel, event_type):
|
|
|
+ def do_save_equipment_info(self, uaql, n_time, channel, event_type,is_st):
|
|
|
Equipment_Info.objects.create(
|
|
|
userID_id=uaql['userID_id'],
|
|
|
eventTime=n_time,
|
|
@@ -353,4 +353,5 @@ class NotificationView(View):
|
|
|
devNickName=uaql['userID__NickName'],
|
|
|
Channel=channel,
|
|
|
alarm='0',
|
|
|
+ is_st=int(is_st),
|
|
|
receiveTime=n_time)
|