|
@@ -59,14 +59,14 @@ class ProductsSchemeManageView(View):
|
|
|
|
|
|
# Token验证
|
|
|
try:
|
|
|
- # tko = TokenObject(
|
|
|
- # request.META.get('HTTP_AUTHORIZATION'),
|
|
|
- # returntpye='pc')
|
|
|
- # if tko.code != 0:
|
|
|
- # return response.json(tko.code)
|
|
|
- # response.lang = tko.lang
|
|
|
- # user_id = tko.userID
|
|
|
- user_id = ''
|
|
|
+ tko = TokenObject(
|
|
|
+ request.META.get('HTTP_AUTHORIZATION'),
|
|
|
+ returntpye='pc')
|
|
|
+ if tko.code != 0:
|
|
|
+ return response.json(tko.code)
|
|
|
+ response.lang = tko.lang
|
|
|
+ user_id = tko.userID
|
|
|
+
|
|
|
except Exception as e:
|
|
|
LOGGER.error(f"Token验证失败: {str(e)}")
|
|
|
return response.json(444)
|