From 83edc822a2af0cda9c2976ad2ea5a7f1315ebed5 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Tue, 16 Jul 2024 07:42:11 +0800 Subject: [PATCH] update --- app/main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/main.py b/app/main.py index a1ceadb..3d67c97 100644 --- a/app/main.py +++ b/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/")