[PR #102] [CLOSED] 微信公众号对接插件 #610

Closed
opened 2026-02-22 17:33:56 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugins/pull/102
Author: @bikeread
Created: 3/9/2025
Status: Closed

Base: mainHead: add_wechat_plugin


📝 Commits (1)

  • db598c2 微信公众号对接插件

📊 Changes

32 files changed (+3049 additions, -0 deletions)

View changed files

bikeread/dify_wechat_plugin/.difyignore (+178 -0)
bikeread/dify_wechat_plugin/.env.example (+4 -0)
bikeread/dify_wechat_plugin/.gitignore (+171 -0)
bikeread/dify_wechat_plugin/GUIDE.md (+117 -0)
bikeread/dify_wechat_plugin/PRIVACY.md (+70 -0)
bikeread/dify_wechat_plugin/README.md (+223 -0)
bikeread/dify_wechat_plugin/_assets/icon.svg (+6 -0)
bikeread/dify_wechat_plugin/dify_wechat_plugin.difypkg (+0 -0)
bikeread/dify_wechat_plugin/endpoints/wechat/__init__.py (+18 -0)
bikeread/dify_wechat_plugin/endpoints/wechat/api/__init__.py (+3 -0)
bikeread/dify_wechat_plugin/endpoints/wechat/api/custom_message.py (+128 -0)
bikeread/dify_wechat_plugin/endpoints/wechat/crypto.py (+376 -0)
bikeread/dify_wechat_plugin/endpoints/wechat/factory.py (+43 -0)
bikeread/dify_wechat_plugin/endpoints/wechat/formatters.py (+47 -0)
bikeread/dify_wechat_plugin/endpoints/wechat/handlers/__init__.py (+20 -0)
bikeread/dify_wechat_plugin/endpoints/wechat/handlers/base.py (+83 -0)
bikeread/dify_wechat_plugin/endpoints/wechat/handlers/image.py (+108 -0)
bikeread/dify_wechat_plugin/endpoints/wechat/handlers/link.py (+108 -0)
bikeread/dify_wechat_plugin/endpoints/wechat/handlers/text.py (+223 -0)
bikeread/dify_wechat_plugin/endpoints/wechat/handlers/unsupported.py (+14 -0)

...and 12 more files

📄 Description

Plugin Submission Form

1. Submission Type

  • New plugin submission
  • Version update for existing plugin

2. Description

本插件旨在将Dify AI应用与微信公众号无缝集成,允许用户通过微信公众号与AI进行对话交互。插件处理微信公众号的消息接收和回复,支持会话记忆功能,确保连续对话的上下文保持。巧妙解决了微信公众号5秒超时限制问题:通过合理运用微信单条消息三次重试发送规则,将回复时间延长到15秒左右;若AI仍未完成答复,并且配置了APPID和APPSECRET,系统会尝试调用客服消息接口发送完整回复,确保用户体验的连贯性。这种双轨机制设计保证了大语言模型长耗时生成的完整响应能够可靠传递给终端用户。

3. Checklist

  • I have read and followed the Publish to Dify Marketplace guidelines
  • I have read and comply with the Plugin Developer Agreement
  • I confirm my plugin works properly on both Dify Community Edition and Cloud Version
  • I confirm my plugin has been thoroughly tested for completeness and functionality
  • My plugin brings new value to Dify

4. Documentation Checklist

Please confirm that your plugin README includes all necessary information:

  • Step-by-step setup instructions
  • Detailed usage instructions
  • All required APIs and credentials are clearly listed
  • Connection requirements and configuration details

5. Privacy Protection Information

Based on Dify Plugin Privacy Protection Guidelines:

Data Collection

本插件收集以下用户数据:
1.微信用户的OpenID - 用于识别用户会话、维持对话上下文
2.用户发送的消息内容 - 用于发送给Dify AI应用进行处理和回复
3.会话历史记录 - 用于保持对话连续性
插件不会收集或存储任何其他个人身份信息。这些数据仅在必要的时间内临时保存用于处理,遵循最小数据收集原则。

Privacy Policy

  • I confirm that I have prepared and included a privacy policy in my plugin package based on the Plugin Privacy Protection Guidelines

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugins/pull/102 **Author:** [@bikeread](https://github.com/bikeread) **Created:** 3/9/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `add_wechat_plugin` --- ### 📝 Commits (1) - [`db598c2`](https://github.com/langgenius/dify-plugins/commit/db598c261d052e082d78a1bf23680f7dea9d5abe) 微信公众号对接插件 ### 📊 Changes **32 files changed** (+3049 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `bikeread/dify_wechat_plugin/.difyignore` (+178 -0) ➕ `bikeread/dify_wechat_plugin/.env.example` (+4 -0) ➕ `bikeread/dify_wechat_plugin/.gitignore` (+171 -0) ➕ `bikeread/dify_wechat_plugin/GUIDE.md` (+117 -0) ➕ `bikeread/dify_wechat_plugin/PRIVACY.md` (+70 -0) ➕ `bikeread/dify_wechat_plugin/README.md` (+223 -0) ➕ `bikeread/dify_wechat_plugin/_assets/icon.svg` (+6 -0) ➕ `bikeread/dify_wechat_plugin/dify_wechat_plugin.difypkg` (+0 -0) ➕ `bikeread/dify_wechat_plugin/endpoints/wechat/__init__.py` (+18 -0) ➕ `bikeread/dify_wechat_plugin/endpoints/wechat/api/__init__.py` (+3 -0) ➕ `bikeread/dify_wechat_plugin/endpoints/wechat/api/custom_message.py` (+128 -0) ➕ `bikeread/dify_wechat_plugin/endpoints/wechat/crypto.py` (+376 -0) ➕ `bikeread/dify_wechat_plugin/endpoints/wechat/factory.py` (+43 -0) ➕ `bikeread/dify_wechat_plugin/endpoints/wechat/formatters.py` (+47 -0) ➕ `bikeread/dify_wechat_plugin/endpoints/wechat/handlers/__init__.py` (+20 -0) ➕ `bikeread/dify_wechat_plugin/endpoints/wechat/handlers/base.py` (+83 -0) ➕ `bikeread/dify_wechat_plugin/endpoints/wechat/handlers/image.py` (+108 -0) ➕ `bikeread/dify_wechat_plugin/endpoints/wechat/handlers/link.py` (+108 -0) ➕ `bikeread/dify_wechat_plugin/endpoints/wechat/handlers/text.py` (+223 -0) ➕ `bikeread/dify_wechat_plugin/endpoints/wechat/handlers/unsupported.py` (+14 -0) _...and 12 more files_ </details> ### 📄 Description # Plugin Submission Form ## 1. Submission Type - [x] New plugin submission - [ ] Version update for existing plugin ## 2. Description 本插件旨在将Dify AI应用与微信公众号无缝集成,允许用户通过微信公众号与AI进行对话交互。插件处理微信公众号的消息接收和回复,支持会话记忆功能,确保连续对话的上下文保持。巧妙解决了微信公众号5秒超时限制问题:通过合理运用微信单条消息三次重试发送规则,将回复时间延长到15秒左右;若AI仍未完成答复,并且配置了APPID和APPSECRET,系统会尝试调用客服消息接口发送完整回复,确保用户体验的连贯性。这种双轨机制设计保证了大语言模型长耗时生成的完整响应能够可靠传递给终端用户。 ## 3. Checklist - [x] I have read and followed the Publish to Dify Marketplace guidelines - [x] I have read and comply with the Plugin Developer Agreement - [x] I confirm my plugin works properly on both Dify Community Edition and Cloud Version - [x] I confirm my plugin has been thoroughly tested for completeness and functionality - [x] My plugin brings new value to Dify ## 4. Documentation Checklist Please confirm that your plugin README includes all necessary information: - [x] Step-by-step setup instructions - [x] Detailed usage instructions - [x] All required APIs and credentials are clearly listed - [x] Connection requirements and configuration details ## 5. Privacy Protection Information Based on Dify Plugin Privacy Protection [Guidelines](https://docs.dify.ai/plugins/publish-plugins/publish-to-dify-marketplace/plugin-privacy-protection-guidelines): ### Data Collection 本插件收集以下用户数据: 1.微信用户的OpenID - 用于识别用户会话、维持对话上下文 2.用户发送的消息内容 - 用于发送给Dify AI应用进行处理和回复 3.会话历史记录 - 用于保持对话连续性 插件不会收集或存储任何其他个人身份信息。这些数据仅在必要的时间内临时保存用于处理,遵循最小数据收集原则。 ### Privacy Policy - [x] I confirm that I have prepared and included a privacy policy in my plugin package based on the Plugin Privacy Protection Guidelines --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 17:33:56 -05:00
yindo closed this issue 2026-02-22 17:33:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugins#610