|
@@ -45,6 +45,7 @@ class UserDeviceShareView(View):
|
|
token = TokenObject(request.META.get('HTTP_AUTHORIZATION'))
|
|
token = TokenObject(request.META.get('HTTP_AUTHORIZATION'))
|
|
lang = request_dict.get('lang', token.lang)
|
|
lang = request_dict.get('lang', token.lang)
|
|
response = ResponseObject(lang)
|
|
response = ResponseObject(lang)
|
|
|
|
+ LOGGER.info(f"test:{token}")
|
|
if token.code != 0:
|
|
if token.code != 0:
|
|
return response.json(token.code)
|
|
return response.json(token.code)
|
|
if operation == 'user-permissions':
|
|
if operation == 'user-permissions':
|
|
@@ -223,7 +224,7 @@ class UserDeviceShareView(View):
|
|
device_type = int(request_dict.get('deviceType', None))
|
|
device_type = int(request_dict.get('deviceType', None))
|
|
uid = request_dict.get('uid', None)
|
|
uid = request_dict.get('uid', None)
|
|
channel = int(request_dict.get('channel', 1))
|
|
channel = int(request_dict.get('channel', 1))
|
|
-
|
|
|
|
|
|
+ LOGGER.info('request_dict:{}'.format(request_dict))
|
|
if not all([device_type, uid]):
|
|
if not all([device_type, uid]):
|
|
return response.json(444)
|
|
return response.json(444)
|
|
|
|
|