代码优化
This commit is contained in:
parent
5a7210bb43
commit
d459d83d26
|
|
@ -113,6 +113,7 @@ class DealAccount:
|
|||
restore = self.task_all.restore_system(pad_code=[data["pad_code"]], backup_name=res_dict["backup_name"])
|
||||
logger.info(f"<UNK>{data['pad_code']}还原结果为: {restore}")
|
||||
if restore:
|
||||
try:
|
||||
result_status = self.task_all.check_phone_status(pad_code=[data["pad_code"]], file_name="test_abc.js")
|
||||
logger.info(f"<UNK>:{data['pad_code']}{result_status}")
|
||||
if result_status:
|
||||
|
|
@ -129,6 +130,8 @@ class DealAccount:
|
|||
self.task_all.async_execute_adb_command(pad_code=data["pad_code"], file_name=res_dict["script_name"])
|
||||
# 需要新增函数
|
||||
return True
|
||||
except Exception as e:
|
||||
logger.info(f"<UNK>{data['pad_code']} <UNK>{e}")
|
||||
else:
|
||||
logger.info(f"云机:{data['pad_code']} 300环境还原失败,需要认为干预")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue