|
@@ -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)
|