You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
提bug前先检查以下是否已经执行
bug描述
提供有用的信息
@app.post("/receive")
async def receive_message(
type: str = Form(...),
content: str = Form(...),
source: str = Form(...),
isMentioned: str = Form(...),
isMsgFromSelf: str = Form(...),
):
处理请求数据
response_data = {"type": type,
"content": content,
"source": source,
"isMentioned": isMentioned,
"isMsgFromSelf": isMsgFromSelf,
}
try:
# 填写处理逻辑-开始
logger.info("Received data: {}", response_data)
# 填写处理逻辑-结束
return JSONResponse(content={"status": "success", "data": response_data})
except Exception as e:
logger.error("Error processing request: {}", e)
return JSONResponse(content={"status": "error", "data": "处理失败"})
if name == "main":
uvicorn.run(app, host="0.0.0.0", port=3003)
The text was updated successfully, but these errors were encountered: