update
This commit is contained in:
10
app/main.py
10
app/main.py
@@ -60,12 +60,12 @@ def add_user(
|
||||
wxid=wxid, gender=gender, friendaddtime=friendaddtime,
|
||||
openid=openid))
|
||||
response=f'''{nickname}你好,\n我是机器人助理\n一名开发者,副业:跨境电商,#公众号:异度世界'''
|
||||
content = {
|
||||
"answer": response,
|
||||
"answer_type": "text",
|
||||
}
|
||||
# content = {
|
||||
# "answer": response,
|
||||
# "answer_type": "text",
|
||||
# }
|
||||
headers = {"Content-Type": "application/json"}
|
||||
return JSONResponse(content=content, headers=headers)
|
||||
return JSONResponse(content=response, headers=headers)
|
||||
# return f'''{nickname}你好,\n我是机器人助理\n一名开发者,副业:跨境电商,#公众号:异度世界'''
|
||||
|
||||
@app.get("/users/")
|
||||
|
||||
Reference in New Issue
Block a user