瀏覽代碼

调整

d1
H Vs 3 週之前
父節點
當前提交
109c5e7e40
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      app/endpoints/pipeline_endpoint.py

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

@@ -41,8 +41,8 @@ async def get_messages(request: Request, body: Dict[str, Any]):
await handle_self_cmd_async(request,wxid,msg)
msg_data = msg.get("Data")
from_wxid = msg_data["FromUserName"]["string"]
config=await request.app.state.redis_service.get_hash(f"__AI_OPS_WX__:WXCHAT_CONFIG")
wxids=config.keys()
config=await request.app.state.redis_service.get_hash(f"__AI_OPS_WX__:WXCHAT_CONFIG")
wxids = list(config.keys())
meged_backlist_wxids=wxids+WX_BACKLIST
# 公众号ID已gh_开头
if from_wxid in meged_backlist_wxids or 'gh_' in from_wxid:


Loading…
取消
儲存