|
@@ -154,13 +154,13 @@ class DetectControllerView(View):
|
|
if not all([appBundleId, app_type, token_val, uid, m_code]):
|
|
if not all([appBundleId, app_type, token_val, uid, m_code]):
|
|
return response.json(444, 'appBundleId,app_type,token_val,uid,m_code')
|
|
return response.json(444, 'appBundleId,app_type,token_val,uid,m_code')
|
|
# 判断推送类型对应key是否存在
|
|
# 判断推送类型对应key是否存在
|
|
- if push_type == 0:
|
|
|
|
|
|
+ if push_type == '0':
|
|
if appBundleId not in APNS_CONFIG.keys():
|
|
if appBundleId not in APNS_CONFIG.keys():
|
|
return response.json(904)
|
|
return response.json(904)
|
|
- elif push_type == 1:
|
|
|
|
|
|
+ elif push_type == '1':
|
|
if appBundleId not in FCM_CONFIG.keys():
|
|
if appBundleId not in FCM_CONFIG.keys():
|
|
return response.json(904)
|
|
return response.json(904)
|
|
- elif push_type == 2:
|
|
|
|
|
|
+ elif push_type == '2':
|
|
if appBundleId not in JPUSH_CONFIG.keys():
|
|
if appBundleId not in JPUSH_CONFIG.keys():
|
|
return response.json(904)
|
|
return response.json(904)
|
|
else:
|
|
else:
|