让生产环境不跑登录账号任务

This commit is contained in:
work
2025-05-22 16:12:14 +08:00
parent 48626ac3ca
commit bd65dfaf8f

View File

@@ -22,7 +22,11 @@ def get_task():
header = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=header)
data = {
"include_task_type": [],
"exclude_task_type": ["login_account"],
}
response = requests.post(url, headers=header, json=data)
if response.status_code == 200:
result = response.json()
return result