JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix(channel): 修复钉钉回复显示问题
alan_cheng96aa04d151eb
diff --git a/jiuwenclaw/channel/dingding.py b/jiuwenclaw/channel/dingding.pyindex fd604e562e..1dbe276fa4 100644--- a/jiuwenclaw/channel/dingding.py+++ b/jiuwenclaw/channel/dingding.py@@ -318,7 +318,10 @@ class DingTalkChannel(BaseChannel):if msg.params and "content" in msg.params:return str(msg.params["content"])elif msg.payload and "content" in msg.payload:- return str(msg.payload["content"])+ content_ = msg.payload["content"]+ if isinstance(content_, dict) and "output" in content_:+ return str(content_["output"])+ return str(content_)elif msg.payload and "text" in msg.payload:return str(msg.payload["text"])return None