瀏覽代碼

调整

develop
H Vs 2 月之前
父節點
當前提交
7ebfd9f0be
共有 1 個文件被更改,包括 8 次插入3 次删除
  1. +8
    -3
      resources/messages_resource.py

+ 8
- 3
resources/messages_resource.py 查看文件

@@ -47,11 +47,16 @@ class MessagesResource(Resource):
wx_config = gewe_chat.wxchat.get_wxchat_config_from_cache(wxid)
if not bool(wx_config.get("agentEnabled",False)):
logger.info(f'微信ID {wxid} 未托管,不处理')
return jsonify({"message": "收到微信回调消息"})
# if not bool(wx_config.get("agentEnabled",False)):
# logger.info(f'微信ID {wxid} 未托管,不处理')
# return jsonify({"message": "收到微信回调消息"})
if type_name=='AddMsg':

if not bool(wx_config.get("agentEnabled",False)):
logger.info(f'微信ID {wxid} 未托管,不处理')
return jsonify({"message": "收到微信回调消息"})
#wxid = msg.get("Wxid")
msg_data = msg.get("Data")
msg_type = msg_data.get("MsgType",None)


Loading…
取消
儲存