Explorar o código

物品名修复序列号全称

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

+ 1 - 1
Controller/IotCoreController.py

@@ -72,7 +72,7 @@ class IotCoreView(View):
                 region_id = Device_Region().get_device_region(ip)
 
                 iotClient = IOTClient(region_id)
-                res = iotClient.create_keys_and_certificate(serial, thingGroup)
+                res = iotClient.create_keys_and_certificate(serial_number, thingGroup)
                 nowTime = int(time.time())
                 token_iot_number = hashlib.md5((str(uuid.uuid1()) + str(nowTime)).encode('utf-8')).hexdigest()