Pārlūkot izejas kodu

去掉token注释

locky 3 gadi atpakaļ
vecāks
revīzija
f1efc74800
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      Controller/SensorGateway/SubDeviceController.py

+ 2 - 2
Controller/SensorGateway/SubDeviceController.py

@@ -32,8 +32,8 @@ class GatewaySubDeviceView(View):
         lang = request_dict.get('lang', None)
         response = ResponseObject(lang if lang else token_obj.lang)
 
-        # if token_obj.code != 0:
-        #     return response.json(token_obj.code)
+        if token_obj.code != 0:
+            return response.json(token_obj.code)
         user_id = token_obj.userID
         if operation == 'add':  # 添加子设备
             return self.add(request_dict, user_id, response)