|
@@ -29,6 +29,8 @@ from Service.CommonService import CommonService
|
|
from Service.EquipmentInfoService import EquipmentInfoService
|
|
from Service.EquipmentInfoService import EquipmentInfoService
|
|
from Service.VodHlsService import SplitVodHlsObject
|
|
from Service.VodHlsService import SplitVodHlsObject
|
|
|
|
|
|
|
|
+from AdminController.CloudServiceManage.AgentDeviceController import AgentDeviceView
|
|
|
|
+
|
|
|
|
|
|
class SerialNumberView(View):
|
|
class SerialNumberView(View):
|
|
|
|
|
|
@@ -402,6 +404,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):
|
|
"""
|
|
"""
|