server启动之后,填入callback
This commit is contained in:
@@ -17,7 +17,7 @@ def register_robot(appid, robot_instance):
|
||||
logger.info(f"已注册appid为{appid}的Robot实例")
|
||||
|
||||
|
||||
@router.post("/gewechat/callback")
|
||||
@router.post("/gewechat/message/callback")
|
||||
async def callback(request: Request):
|
||||
"""接收微信消息回调"""
|
||||
try:
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
base_url= "http://192.168.2.240:2531/v2/api"
|
||||
gewechat_token= "cb43f52db27e4a56bb6ec7da54373582"
|
||||
app_id="wx_3BC6eSHGE5xEm_hH3__7c"
|
||||
callback_url="http://192.168.2.210:8999/gewechat/callback"
|
||||
callback_url="http://192.168.2.210:8999/gewechat/message/callback"
|
||||
|
||||
Reference in New Issue
Block a user