浏览代码

修复client id赋值问题

locky 1 年之前
父节点
当前提交
f4b6dd84f4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Controller/alexa/AlexaController.py

+ 2 - 2
Controller/alexa/AlexaController.py

@@ -39,8 +39,8 @@ class AppToAppView(View):
     def validation(self, request_dict, operation, request):
         response = ResponseObject()
         token = TokenObject(request.META.get('HTTP_AUTHORIZATION'))
-        # if token.code != 0:
-        #     return response.json(token.code)
+        if token.code != 0:
+            return response.json(token.code)
         user_id = token.userID
         if operation == 'getAlexaAppURLAndLWAFallbackURL':  # 获取Alexa App和LWA fallback URL
             return self.get_alexa_app_url_and_lwa_fallback_url(response)