让生产环境不跑登录账号任务
This commit is contained in:
6
main.py
6
main.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user