浏览代码

调整日志

d1
H Vs 3 周前
父节点
当前提交
469cebba59
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/endpoints/pipeline_endpoint.py

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

@@ -46,7 +46,7 @@ async def get_messages(request: Request, body: Dict[str, Any]):
WX_BACKLIST.extend(wxids) WX_BACKLIST.extend(wxids)
# 公众号ID已gh_开头 # 公众号ID已gh_开头
if from_wxid in WX_BACKLIST or 'gh_' in from_wxid: if from_wxid in WX_BACKLIST or 'gh_' in from_wxid:
logger.warning(f'微信ID {wxid} 在黑名单,不处理')
logger.warning(f'来自微信ID {from_wxid} 在黑名单,发送给 {wxid} ,不处理')
return {"message": "收到微信回调消息"} return {"message": "收到微信回调消息"}


await handle_messages_async(request,token_id,msg) await handle_messages_async(request,token_id,msg)


正在加载...
取消
保存