import requests import json data = { "title": "测试DEBUG任务", "description": "DEBUG", "province": "广东省", "city": "广州市", "district": "天河区", "street": "珠江新城", "detail_location": "花城广场旁边", "time": "2026-05-20 12:00", "reward": "5", "publisher_name": "DEBUG", "contact": "13800138000" } print("发送数据...") response = requests.post('http://localhost:3000/api/tasks', json=data) print(f"响应: {response.status_code}") print(response.text) # 检查后端日志 print("\n请查看后端服务的日志输出!")