Ver Fonte

优化添加网关设备的返回结果

guanhailong há 2 anos atrás
pai
commit
0399221a3f
1 ficheiros alterados com 5 adições e 5 exclusões
  1. 5 5
      Controller/SensorGateway/EquipmentFamilyController.py

+ 5 - 5
Controller/SensorGateway/EquipmentFamilyController.py

@@ -216,11 +216,11 @@ class EquipmentFamilyView(View):
                         'tb_country': country
                     }
                     UidSetModel.objects.create(**uid_set_create_dict)
-                    res = {
-                        'id': device_id,
-                        'nickname': nick_name,
-                        'serialNumber': serial_number
-                    }
+                res = {
+                    'id': device_id,
+                    'nickname': nick_name,
+                    'serialNumber': serial_number
+                }
                 return response.json(0, res)
         except Exception as e:
             print(e)