Commit 738173be authored by 赵凯's avatar 赵凯 💬

fix bug

parent 0feb1e29
......@@ -78,7 +78,9 @@ def tasksPatch(taskid):
'cookie': cookie
}
response = requests.request("PATCH", url, headers=headers, data=payload)
# rst = json.loads(response.text)
print(response)
rst = json.loads(response.text)
print(response)
# print("任务开始执行...")
# if rst['code'] == -1:
# print("任务执行异常:" + rst['msg'])
......
......@@ -155,6 +155,9 @@ while is_continue == 1:
elif task_status == 4 :
print("部署成功")
break
elif task_status == 0 :
print("权限不足;请到部署后台手动点击")
break
else:
print("部署异常")
break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment