29 lines
742 B
Python
29 lines
742 B
Python
import requests
|
||
|
||
# 配置
|
||
BASE_URL = "http://47.108.113.7:8000" # 根据实际情况修改
|
||
API_PATH = "/business/conflict-search"
|
||
|
||
# 测试数据
|
||
test_data = {
|
||
"client_info": "fwegwwegw(gewgwg)",
|
||
# "party_info": "grgrg(reghbrgb)",
|
||
# "undertaker": "测试账号2",
|
||
# "bidding_unit": "测试222(2222)",
|
||
# "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()}") |