feat(iit-manager): Add WeChat Official Account integration for patient notifications
Features: - PatientWechatCallbackController for URL verification and message handling - PatientWechatService for template and customer messages - Support for secure mode (message encryption/decryption) - Simplified route /wechat/patient/callback for WeChat config - Event handlers for subscribe/unsubscribe/text messages - Template message for visit reminders Technical details: - Reuse @wecom/crypto for encryption (compatible with Official Account) - Relaxed Fastify schema validation to prevent early request blocking - Access token caching (7000s with 5min pre-refresh) - Comprehensive logging for debugging Testing: Local URL verification passed, ready for SAE deployment Status: Code complete, waiting for WeChat platform configuration
This commit is contained in:
@@ -631,3 +631,4 @@ REDCap API: exportRecords success { recordCount: 1 }
|
||||
**✅ 测试状态**: 全部通过
|
||||
**✅ 部署状态**: 已部署到开发环境
|
||||
|
||||
|
||||
|
||||
@@ -637,3 +637,4 @@ backend/src/modules/iit-manager/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -787,3 +787,4 @@ CREATE TABLE iit_schema.wechat_tokens (
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -544,3 +544,4 @@ Day 3 的开发工作虽然遇到了多个技术问题,但最终成功完成
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -311,3 +311,4 @@ AI: "出生日期:2017-01-04
|
||||
**下一步**: Phase 2 - Function Calling + Dify知识库
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -255,3 +255,4 @@ Day 4: REDCap EM(Webhook推送)← 作为增强,而非核心
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user