zhangdongming 3 years ago
parent
commit
366f052d72
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Controller/OTAEquipment.py

+ 2 - 2
Controller/OTAEquipment.py

@@ -547,7 +547,7 @@ def getNewVerInterface(request):
             redisObject.set_data(device_info_key, device_info_value, expire)
 
             url_tko = UrlTokenObject()
-            file_path = url_tko.generate(data={'Url': param_url, 'uid': device_info_key})
+            file_path = url_tko.generate(data={'Url': 'aws', 'uid': device_info_key})
 
             url = SERVER_DOMAIN + 'dlotapack/' + file_path
             logger.info('<<<<<<<获取ota token={}'.format(file_path))
@@ -690,8 +690,8 @@ def downloadOTAInterfaceV2(request, fullPath, *callback_args, **callback_kwargs)
     logger = logging.getLogger('info')
     logger.info('<<<<<进入OTA下载')
     redis_object = RedisObject()
+    logger.info(device_key)
     device_value = redis_object.get_data(device_key)
-
     logger.info(device_value)
     if not device_value:
         return res.json(907)