|
@@ -42,12 +42,11 @@ class EquipmentManagerV3(View):
|
|
|
if operation == 'notLoginMainUserDevice':
|
|
|
return self.not_login_do_mainUserDevice(request_dict, response)
|
|
|
|
|
|
- # tko = TokenObject(token)
|
|
|
- # if tko.code != 0:
|
|
|
- # return response.json(tko.code)
|
|
|
- # response.lang = tko.lang
|
|
|
- # userID = tko.userID
|
|
|
- userID = '160879593527813800138000'
|
|
|
+ tko = TokenObject(token)
|
|
|
+ if tko.code != 0:
|
|
|
+ return response.json(tko.code)
|
|
|
+ response.lang = tko.lang
|
|
|
+ userID = tko.userID
|
|
|
# 手机端添加设备,查询,修改
|
|
|
if operation == 'add':
|
|
|
return self.do_add(userID, request_dict, response, request)
|