|
@@ -526,13 +526,10 @@ def addInterface(request):
|
|
|
# 新增获取IOT证书内容
|
|
|
iotqs = iotdeviceInfoModel.objects.filter(serial_number=dvql[0]['serial_number'])
|
|
|
if iotqs.exists():
|
|
|
- res['iot'].append(
|
|
|
- {
|
|
|
+ res['iot'] = {
|
|
|
'endpoint': iotqs[0].endpoint,
|
|
|
'token_iot_number': iotqs[0].endpoint
|
|
|
-
|
|
|
- }
|
|
|
- )
|
|
|
+ }
|
|
|
|
|
|
if isMainUserExists:
|
|
|
res['isMainUserExists'] = 1
|