瀏覽代碼

调整

c1
H Vs 1 月之前
父節點
當前提交
14a00faaa0
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      app/endpoints/pipeline_endpoint.py

+ 3
- 2
app/endpoints/pipeline_endpoint.py 查看文件

@@ -21,10 +21,11 @@ messages_router = APIRouter()

WX_BACKLIST=['fmessage', 'medianote','weixin','weixingongzhong','tmessage']
@messages_router.post("/messages",response_model=None)
async def get_chatroominfo(request: Request, body: Dict[str, Any]):
logger.info(f"收到微信回调消息: {json.dumps(msg, separators=(',', ':'),ensure_ascii=False)}")
async def get_messages(request: Request, body: Dict[str, Any]):
try:
msg = body
logger.info(f"收到微信回调消息: {json.dumps(msg, separators=(',', ':'),ensure_ascii=False)}")
type_name =msg.get("TypeName")
app_id = msg.get("Appid")
k, loginfo = await request.app.state.gewe_service.get_login_info_by_app_id_async(app_id)


Loading…
取消
儲存