|
@@ -2326,18 +2326,6 @@ class InitInfoView(View):
|
|
|
lang = request_dict.get('lang', '') # 语言区域
|
|
|
now_time = int(time.time())
|
|
|
if all([token_val, push_type, appBundleId, userID]):
|
|
|
- push_type = int(push_type)
|
|
|
- if push_type == 0:
|
|
|
- if appBundleId not in APNS_CONFIG.keys():
|
|
|
- return response.json(904)
|
|
|
- elif push_type == 1:
|
|
|
- if appBundleId not in FCM_CONFIG.keys():
|
|
|
- return response.json(904)
|
|
|
- elif push_type == 2:
|
|
|
- if appBundleId not in JPUSH_CONFIG.keys():
|
|
|
- return response.json(904)
|
|
|
- else:
|
|
|
- return response.json(444, 'push_type')
|
|
|
self.save_push_config(userID, appBundleId, push_type, token_val, m_code, lang, tz)
|
|
|
if m_code:
|
|
|
# 获取设备推送状态
|