浏览代码

调整

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

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

@@ -641,7 +641,7 @@ async def handle_text_group_async(request: Request,token_id,app_id, wxid,msg_dat
k,login_info=await request.app.state.gewe_service.get_login_info_by_app_id_async(app_id)
nickname=login_info.get("nickName")

config=await request.aoo.state.gewe_service.get_wxchat_config_from_cache_async(wxid)
config=await request.app.state.gewe_service.get_wxchat_config_from_cache_async(wxid)
validated_config = AgentConfig.model_validate(config)
if not validated_config.privateGroupChatEnabled:
logger.warning(f"微信号 {wxid} 关闭好友和群自动回复功能,{handle_text_group_async.__name__} 不回复消息")
@@ -836,7 +836,7 @@ async def handle_voice_async(request: Request,token_id,app_id, wxid,msg_data,fro
msg_content=msg_data["Content"]["string"]
msg_id=msg_data["MsgId"]

config=await request.aoo.state.gewe_service.get_wxchat_config_from_cache_async(wxid)
config=await request.app.state.gewe_service.get_wxchat_config_from_cache_async(wxid)
validated_config = AgentConfig.model_validate(config)
if not validated_config.privateGroupChatEnabled:
logger.warning(f"微信号 {wxid} 关闭好友和群自动回复功能,{handle_voice_async.__name__} 不回复消息")


正在加载...
取消
保存