同步三方设备接口

This commit is contained in:
曹前明 2022-07-15 22:43:30 +08:00
parent 0c503fc6c3
commit 14473de9de
1 changed files with 0 additions and 3 deletions

View File

@ -190,7 +190,6 @@ class TDeviceViewSet(ListModelMixin, UpdateModelMixin, DestroyModelMixin, Custom
else:
td = TDevice(code=i['sn'], type=TDevice.DEVICE_SPEAKER)
td.name = i['name']
td.third_info = i
td.save()
return Response()
@ -216,7 +215,6 @@ class TDeviceViewSet(ListModelMixin, UpdateModelMixin, DestroyModelMixin, Custom
else:
td = TDevice(code=i['channelCode'], type=TDevice.DEVICE_VCHANNEL)
td.name = i['channelName']
td.third_info = i
td.save()
return Response()
@ -242,7 +240,6 @@ class TDeviceViewSet(ListModelMixin, UpdateModelMixin, DestroyModelMixin, Custom
else:
td = TDevice(code=i['channelCode'], type=TDevice.DEVICE_VCHANNEL)
td.name = i['channelName']
td.third_info = i
td.save()
return Response()