|
@@ -21,7 +21,7 @@ AMAZON_API_DOMAIN = 'api.amazon.com'
|
|
|
LOOCAM_SKILL_STAGE = 'development' # 开发中: development, 已上线: live
|
|
|
LOOCAM_SKILL_ASIN = 'B0C94Q7H1L'
|
|
|
LOOCAM_SKILL_ID = 'amzn1.ask.skill.ff5a5074-7ec7-442b-979b-cb57095f7a94'
|
|
|
-LOOCAM_CLIENT_ID = 'amzn1.application-oa2-client.98a01914518743e481d51115144dafb0',
|
|
|
+LOOCAM_CLIENT_ID = 'amzn1.application-oa2-client.98a01914518743e481d51115144dafb0'
|
|
|
LOOCAM_CLIENT_SECRET = '43353cac67670aefd64a5f95309754ddd6bcfe8a087cc3cad1348b626f64b132'
|
|
|
|
|
|
|
|
@@ -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)
|