Browse Source

修改设备添加字段接口报错

peng 2 năm trước cách đây
mục cha
commit
29c32955cf
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      Controller/EquipmentManager.py

+ 2 - 1
Controller/EquipmentManager.py

@@ -425,6 +425,7 @@ def addInterface(request):
                 if is_bind.exists():
                     primaryUserID = is_bind[0]['primaryUserID']
                     primaryMaster = is_bind[0]['primaryMaster']
+                    Type = is_bind[0]['Type']
                     isShare = True
 
                 isusermain = False
@@ -483,7 +484,7 @@ def addInterface(request):
                             'channel': ChannelIndex,
                             'nickname': NickName,
                             'version': version,
-                            'device_type': is_bind[0]['Type'],
+                            'device_type': Type,
                             'tb_country': country
                         }
                         UidSetModel.objects.create(**uid_set_create_dict)