Files
haha/test.py

29 lines
742 B
Python
Raw Normal View History

2026-01-21 11:34:47 +08:00
import requests
# 配置
BASE_URL = "http://47.108.113.7:8000" # 根据实际情况修改
API_PATH = "/business/conflict-search"
# 测试数据
test_data = {
"client_info": "fwegwwegwgewgwg",
# "party_info": "grgrgreghbrgb",
# "undertaker": "测试账号2",
# "bidding_unit": "测试2222222",
# "exclude_prefiling_id": None,
# "exclude_project_id": None,
# "exclude_bid_id": None
}
# 发送请求
response = requests.post(
f"{BASE_URL}{API_PATH}",
json=test_data,
headers={
"Content-Type": "application/json",
"Authorization": "1111" # 如果需要认证添加token
}
)
print(f"状态码: {response.status_code}")
print(f"响应内容: {response.json()}")