|
@@ -39,12 +39,6 @@ class DetectControllerViewV2(View):
|
|
|
return self.validation(request, request.POST, operation, api_version)
|
|
|
|
|
|
def validation(self, request, request_dict, operation, api_version):
|
|
|
- token_code, user_id, response = CommonService \
|
|
|
- .verify_token_get_user_id(request_dict, request)
|
|
|
- if token_code == 0:
|
|
|
- # 消息提醒设置
|
|
|
- if operation == 'messageNotificationSet':
|
|
|
- return self.message_notification_set(api_version, request_dict, response)
|
|
|
response = ResponseObject()
|
|
|
if operation is None:
|
|
|
return response.json(444, 'error path')
|
|
@@ -64,6 +58,9 @@ class DetectControllerViewV2(View):
|
|
|
# 更新推送延迟
|
|
|
elif operation == 'updateInterval':
|
|
|
return self.do_update_interval(userID, request_dict, response)
|
|
|
+ # 消息提醒配置
|
|
|
+ elif operation == 'messageNotificationSet':
|
|
|
+ return self.message_notification_set(api_version, request_dict, response)
|
|
|
else:
|
|
|
return response.json(414)
|
|
|
else:
|