Explorar o código

查询设备列表C1返回序列号

locky %!s(int64=3) %!d(string=hai) anos
pai
achega
bf660fef0a
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      Controller/EquipmentManagerV3.py

+ 1 - 3
Controller/EquipmentManagerV3.py

@@ -671,9 +671,7 @@ class EquipmentManagerV3(View):
 
         for p in dvls:
             # C1返回序列号
-            if p['Type'] == 101:
-                p['serial_number'] = CommonService.get_full_serial_number(p['UID'], p['serial_number'], p['Type'])
-            else:
+            if p['Type'] != 101:
                 p['serial_number'] = ''
             # 获取iot_deviceInfo表的endpoint和token_iot_number
             p['iot'] = []