|
@@ -2326,6 +2326,8 @@ class InitInfoView(View):
|
|
tz = request_dict.get('tz', '0')
|
|
tz = request_dict.get('tz', '0')
|
|
lang = request_dict.get('lang', '') # 语言区域
|
|
lang = request_dict.get('lang', '') # 语言区域
|
|
now_time = int(time.time())
|
|
now_time = int(time.time())
|
|
|
|
+ if m_code[:4] == 'iOS_':
|
|
|
|
+ m_code = m_code[4:]
|
|
if all([token_val, push_type, appBundleId, userID]):
|
|
if all([token_val, push_type, appBundleId, userID]):
|
|
self.save_push_config(userID, appBundleId, push_type, token_val, m_code, lang, tz)
|
|
self.save_push_config(userID, appBundleId, push_type, token_val, m_code, lang, tz)
|
|
self.save_or_creat_uid_push(userID, appBundleId, push_type, token_val, m_code, lang, tz, now_time)
|
|
self.save_or_creat_uid_push(userID, appBundleId, push_type, token_val, m_code, lang, tz, now_time)
|