|
@@ -1293,8 +1293,7 @@ class InitInfoView(View):
|
|
|
return response.json(904)
|
|
|
else:
|
|
|
return response.json(444, 'push_type')
|
|
|
- uid_list = ModelService.get_uid_list(userID=userID)
|
|
|
- if uid_list:
|
|
|
+ if m_code:
|
|
|
# 获取设备推送状态
|
|
|
update_dict = {
|
|
|
'token_val': token_val,
|
|
@@ -1302,8 +1301,8 @@ class InitInfoView(View):
|
|
|
'tz': tz,
|
|
|
}
|
|
|
# 更新当前用户推送设备状态
|
|
|
- UidPushModel.objects.filter(userID_id=userID, m_code=m_code, uid_set__detect_status=1).update(
|
|
|
- **update_dict)
|
|
|
+ UidPushModel.objects.filter(userID_id=userID, m_code=m_code). \
|
|
|
+ update(**update_dict)
|
|
|
if appBundleId:
|
|
|
user_ex_qs = UserExModel.objects.filter(userID_id=userID)
|
|
|
if user_ex_qs.exists():
|
|
@@ -1311,7 +1310,6 @@ class InitInfoView(View):
|
|
|
'updTime': nowTime,
|
|
|
'appBundleId': appBundleId,
|
|
|
'region': lang
|
|
|
- # 'is_cn':
|
|
|
}
|
|
|
user_ex_qs.update(**update_dict)
|
|
|
else:
|