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,
|
wxid=wxid, gender=gender, friendaddtime=friendaddtime,
|
||||||
openid=openid))
|
openid=openid))
|
||||||
response=f'''{nickname}你好,\n我是机器人助理\n一名开发者,副业:跨境电商,#公众号:异度世界'''
|
response=f'''{nickname}你好,\n我是机器人助理\n一名开发者,副业:跨境电商,#公众号:异度世界'''
|
||||||
content = {
|
# content = {
|
||||||
"answer": response,
|
# "answer": response,
|
||||||
"answer_type": "text",
|
# "answer_type": "text",
|
||||||
}
|
# }
|
||||||
headers = {"Content-Type": "application/json"}
|
headers = {"Content-Type": "application/json"}
|
||||||
return JSONResponse(content=content, headers=headers)
|
return JSONResponse(content=response, headers=headers)
|
||||||
# return f'''{nickname}你好,\n我是机器人助理\n一名开发者,副业:跨境电商,#公众号:异度世界'''
|
# return f'''{nickname}你好,\n我是机器人助理\n一名开发者,副业:跨境电商,#公众号:异度世界'''
|
||||||
|
|
||||||
@app.get("/users/")
|
@app.get("/users/")
|
||||||
|
|||||||
Reference in New Issue
Block a user