Forráskód Böngészése

修复client id赋值问题

locky 1 éve
szülő
commit
f4b6dd84f4
1 módosított fájl, 2 hozzáadás és 2 törlés
  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)