zhuyuan-ice-gl-zy001/ZCODE-DEV-20260901/zcode-zc001-miniprogram-dev-20260901-20260901/TCS-RECEIPT-WX-SECRETS-DEPLOY-20260901.tcs

10 lines
1.2 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# TCS 回执 · 微信钥匙配置 + 网关 systemd 化 + 摆渡站安全链修正
- 日期: 2026-09-01 19:0x | 频道: ICE-CH-ZC001
- 冰朔提供: AppID wx174a349830857527 + AppSecret(与项目登记 AppID 一致)
- 部署:
1. WX_APPID/WX_SECRET 写入 /etc/guanghu/persona-secrets/mp-app-deepseek.env(chmod 600,不进代码/git)
2. 发现问题①:msgSecCheck 要求真实微信 openid,光湖自建 uid 不合规 → CONTENT_REJECTED。修正:客户端 wx.login 取 code(commit 31a2bd8e),服务端 code2session 换真实 openid 再检测
3. 发现问题②:nohup 方式重启后进程二次丢失 → 改用服务器既有 mp-app-ai-gateway.service(systemd, Restart=always)托管,enable --now 生效——今后网关由 systemd 守护,挂了自动拉起
- 验证(本机+公网双通道):网关 active;/api/ferry GET ✅;/api/lamp ✅(公网计数正确递增)
- 待办: 摆渡站完整链(真实 code2session→检测→上船)需在小程序端真机/模拟器登录态实测(服务端无法自测 wx.login code);订阅消息推送仍缺模板 ID(等冰朔在 功能→订阅消息 添加模板)
- 安全注记: AppSecret 已落入服务器受控目录;本回执不含密钥明文