代码优化
This commit is contained in:
parent
5b68cb9cc1
commit
038495f226
|
|
@ -106,9 +106,9 @@ class DealAccount:
|
|||
where_conditions = "account_id = %s "
|
||||
result_sql = await self.update_device_status(set_param, where_conditions, params)
|
||||
if result_sql:
|
||||
restore = self.task_all.restore_system(pad_code=data["pad_code"], backup_name=res_dict["backup_name"])
|
||||
restore = self.task_all.restore_system(pad_code=[data["pad_code"]], backup_name=res_dict["backup_name"])
|
||||
if restore:
|
||||
result_status = self.task_all.check_phone_status(pad_code=data["pad_code"], file_name="test_abc.js")
|
||||
result_status = self.task_all.check_phone_status(pad_code=[data["pad_code"]], file_name="test_abc.js")
|
||||
if result_status:
|
||||
print(f"云机:{data['pad_code']} 环境还原成功")
|
||||
# 下载执行脚本
|
||||
|
|
|
|||
Loading…
Reference in New Issue