|
@@ -267,11 +267,6 @@ class SerialNumberView(View):
|
|
redisObj))
|
|
redisObj))
|
|
thread.start()
|
|
thread.start()
|
|
|
|
|
|
- # 异步调用客户代理平台同步序列号绑定UID
|
|
|
|
- agent_thread = threading.Thread(target=AgentDeviceView.device_binding_or_unbinding,
|
|
|
|
- args=(full_serial, 1))
|
|
|
|
- agent_thread.start()
|
|
|
|
-
|
|
|
|
return response.json(0, res)
|
|
return response.json(0, res)
|
|
return response.json(5)
|
|
return response.json(5)
|
|
elif company_serial.status == 2: # 返回uid
|
|
elif company_serial.status == 2: # 返回uid
|
|
@@ -412,6 +407,16 @@ class SerialNumberView(View):
|
|
except Exception as e:
|
|
except Exception as e:
|
|
LOGGER.info('发送提醒邮件异常: error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
LOGGER.info('发送提醒邮件异常: error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
|
|
+ try:
|
|
|
|
+ # 异步调用客户代理平台同步序列号绑定UID
|
|
|
|
+ serial_number = serial + '11A'
|
|
|
|
+ agent_thread = threading.Thread(target=AgentDeviceView.device_binding_or_unbinding,
|
|
|
|
+ args=(serial_number, 1))
|
|
|
|
+ agent_thread.start()
|
|
|
|
+ except Exception as e:
|
|
|
|
+ LOGGER.error('异步更新定制客户序列号状态一次: error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno,
|
|
|
|
+ repr(e)))
|
|
|
|
+
|
|
@staticmethod
|
|
@staticmethod
|
|
def sync_serial_data_and_log(request, company_serial_id, serial, now_time):
|
|
def sync_serial_data_and_log(request, company_serial_id, serial, now_time):
|
|
"""
|
|
"""
|
|
@@ -1161,7 +1166,7 @@ class SerialNumberView(View):
|
|
objectKey=license_name,
|
|
objectKey=license_name,
|
|
expires=3600 # 有效期1小时
|
|
expires=3600 # 有效期1小时
|
|
)
|
|
)
|
|
-
|
|
|
|
|
|
+
|
|
res = {
|
|
res = {
|
|
'license_url': download_url.signedUrl
|
|
'license_url': download_url.signedUrl
|
|
}
|
|
}
|