Explorar o código

alexa 主题名修改

chenshibin %!s(int64=4) %!d(string=hai) anos
pai
achega
dfce78ba24
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/IotCoreController.py

+ 1 - 1
Controller/IotCoreController.py

@@ -246,7 +246,7 @@ class IotCoreView(View):
             # 如果device_info表的serial_number不为空,物品名为'Ansjer_Device_序列号'
             # 如果device_info表的serial_number不为空,物品名为'Ansjer_Device_序列号'
             ThingNameSuffix = serial_number if serial_number != '' else uid
             ThingNameSuffix = serial_number if serial_number != '' else uid
 
 
-            thing_name = 'Ansjer_Device_' + ThingNameSuffix
+            thing_name = ThingNameSuffix
             # 获取数据组织将要请求的url
             # 获取数据组织将要请求的url
             iot = iotdeviceInfoModel.objects.filter(thing_name__contains=thing_name).values('thing_name', 'endpoint',
             iot = iotdeviceInfoModel.objects.filter(thing_name__contains=thing_name).values('thing_name', 'endpoint',
                                                                                             'token_iot_number')
                                                                                             'token_iot_number')