|
|
@@ -377,9 +377,9 @@ async def handle_text_async(request: Request,token_id,app_id, wxid,msg_data,from |
|
|
|
logger.warning(f"智能体微信号 {wxid} 关闭好友和群自动回复功能,{handle_text_async.__name__} 不回复消息") |
|
|
|
return |
|
|
|
|
|
|
|
if wxid != from_wxid and from_wxid not in validated_config.privateChatWhiteList: |
|
|
|
logger.warning(f"智能体微信号 {wxid} 的好友 {from_wxid} 不在回复白名单,{handle_text_async.__name__} 不回复消息") |
|
|
|
return |
|
|
|
# if wxid != from_wxid and from_wxid not in validated_config.privateChatWhiteList: |
|
|
|
# logger.warning(f"智能体微信号 {wxid} 的好友 {from_wxid} 不在回复白名单,{handle_text_async.__name__} 不回复消息") |
|
|
|
# return |
|
|
|
|
|
|
|
# 判断是否转人工处理功能 |
|
|
|
is_human_handle_msg= await request.app.state.gewe_service.is_human_handle_msg_with_contact_wxid_async(wxid,from_wxid) |
|
|
|