Sfoglia il codice sorgente

Merge branches 'bin' and 'dev' of http://192.168.136.99:3000/SERVER/AnsjerServer into bin

lhq 4 anni fa
parent
commit
03b7e68f3a
2 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 0 2
      Ansjer/config.py
  2. 1 1
      Controller/IotCoreController.py

+ 0 - 2
Ansjer/config.py

@@ -81,8 +81,6 @@ elif SERVER_TYPE == 'Ansjer.test_settings':
     from Ansjer.config_test import *
 elif SERVER_TYPE == 'Ansjer.formal_settings':
     from Ansjer.config_formal import *
-else:
-    from Ansjer.config_local import *
 # type =2
 JPUSH_CONFIG = {
     'com.ansjer.accloud_ab': {

+ 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()