|
@@ -1266,7 +1266,8 @@ class InitInfoView(View):
|
|
push_type = request_dict.get('push_type', None)
|
|
push_type = request_dict.get('push_type', None)
|
|
appBundleId = request_dict.get('appBundleId', None)
|
|
appBundleId = request_dict.get('appBundleId', None)
|
|
tz = request_dict.get('tz', None)
|
|
tz = request_dict.get('tz', None)
|
|
- region = request_dict.get('region', '') # 语言区域
|
|
|
|
|
|
+ lang = request_dict.get('lang', '') # 语言区域
|
|
|
|
+ # region = request_dict.get('region', '') # 语言区域
|
|
nowTime = int(time.time())
|
|
nowTime = int(time.time())
|
|
if all([token_val, push_type, appBundleId]):
|
|
if all([token_val, push_type, appBundleId]):
|
|
if push_type == 0:
|
|
if push_type == 0:
|
|
@@ -1289,7 +1290,6 @@ class InitInfoView(View):
|
|
'token_val': token_val,
|
|
'token_val': token_val,
|
|
'push_type': push_type,
|
|
'push_type': push_type,
|
|
'tz': tz,
|
|
'tz': tz,
|
|
- '': region
|
|
|
|
}
|
|
}
|
|
UidPushModel.objects.filter(userID_id=userID, m_code=m_code, uid_set_id__in=uid_set_id_list). \
|
|
UidPushModel.objects.filter(userID_id=userID, m_code=m_code, uid_set_id__in=uid_set_id_list). \
|
|
update(**update_dict)
|
|
update(**update_dict)
|
|
@@ -1299,7 +1299,7 @@ class InitInfoView(View):
|
|
update_dict = {
|
|
update_dict = {
|
|
'updTime': nowTime,
|
|
'updTime': nowTime,
|
|
'appBundleId': appBundleId,
|
|
'appBundleId': appBundleId,
|
|
- 'region': region
|
|
|
|
|
|
+ 'region': lang
|
|
# 'is_cn':
|
|
# 'is_cn':
|
|
}
|
|
}
|
|
user_extend_qs.update(**update_dict)
|
|
user_extend_qs.update(**update_dict)
|
|
@@ -1309,7 +1309,7 @@ class InitInfoView(View):
|
|
'updTime': nowTime,
|
|
'updTime': nowTime,
|
|
'appBundleId': appBundleId,
|
|
'appBundleId': appBundleId,
|
|
'userID_id': userID,
|
|
'userID_id': userID,
|
|
- 'region': region
|
|
|
|
|
|
+ 'region': lang
|
|
}
|
|
}
|
|
UserExtendModel.objects.create(**create_dict)
|
|
UserExtendModel.objects.create(**create_dict)
|
|
res = {
|
|
res = {
|