- 新增WechatService(企业微信推送服务,支持文本/卡片/Markdown消息) - 新增WechatCallbackController(异步回复模式,5秒内响应) - 完善iit_quality_check Worker(调用WechatService推送通知) - 新增企业微信回调路由(GET验证+POST接收消息) - 实现LLM意图识别(query_weekly_summary/query_patient_info等) - 安装依赖:@wecom/crypto, xml2js - 更新开发记录文档和MVP开发计划 技术要点: - 使用异步回复模式规避企业微信5秒超时限制 - 使用@wecom/crypto官方库处理XML加解密 - 使用setImmediate实现后台异步处理 - 支持主动推送消息返回LLM处理结果 - 完善审计日志记录(WECHAT_NOTIFICATION_SENT/WECHAT_INTERACTION) 相关文档: - docs/03-业务模块/IIT Manager Agent/06-开发记录/Day3-企业微信集成开发完成记录.md - docs/03-业务模块/IIT Manager Agent/04-开发计划/最小MVP闭环开发计划.md - docs/03-业务模块/IIT Manager Agent/00-模块当前状态与开发指南.md
48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# 鈿狅笍 鍏抽敭锛氫笉缁欓粯璁ゅ€硷紝寮哄埗鍦?SAE 鎺у埗鍙伴厤缃?
|
|
# 濡傛灉鏈厤缃紝鎶ラ敊閫€鍑猴紙閬垮厤浣跨敤閿欒鐨勫悗绔湴鍧€锛?
|
|
if [ -z "$BACKEND_SERVICE_HOST" ]; then
|
|
echo "鉂?ERROR: BACKEND_SERVICE_HOST environment variable is required!"
|
|
echo "Please configure it in SAE console with backend internal IP (e.g., 172.17.x.x)"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$BACKEND_SERVICE_PORT" ]; then
|
|
echo "鈿狅笍 WARNING: BACKEND_SERVICE_PORT not set, using default: 3001"
|
|
export BACKEND_SERVICE_PORT=3001
|
|
fi
|
|
|
|
echo "============================================"
|
|
echo "Starting Frontend Nginx Service"
|
|
echo "Backend Service: ${BACKEND_SERVICE_HOST}:${BACKEND_SERVICE_PORT}"
|
|
echo "Container Timezone: $(cat /etc/timezone)"
|
|
echo "Current Time: $(date)"
|
|
echo "============================================"
|
|
|
|
# 浣跨敤 envsubst 鏇挎崲 Nginx 閰嶇疆涓殑鐜鍙橀噺
|
|
envsubst '${BACKEND_SERVICE_HOST} ${BACKEND_SERVICE_PORT}' \
|
|
< /etc/nginx/templates/nginx.conf.template \
|
|
> /etc/nginx/nginx.conf
|
|
|
|
# 楠岃瘉 Nginx 閰嶇疆
|
|
nginx -t
|
|
|
|
# 鍚姩 Nginx
|
|
exec nginx -g 'daemon off;'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|