Files
AIclinicalresearch/backend/RESTART_SERVER_NOW.md
HaHafeng 4ed67a8846 fix(admin): Fix Prompt management list not showing version info and add debug diagnostics
Summary:
- Fix Prompt list API response schema missing activeVersion and draftVersion fields
- Fastify was filtering out undefined schema fields, causing version columns to show empty
- Add detailed diagnostic logging for Prompt debug mode troubleshooting
- Verify debug mode works correctly (DRAFT version is used when debug enabled)

Changes:
- backend/src/common/prompt/prompt.routes.ts: Add activeVersion and draftVersion to response schema
- backend/src/common/prompt/prompt.service.ts: Add diagnostic logs for setDebugMode and get methods
- PKB module: Various authentication and document handling fixes from previous session

Tested: Debug mode verified working - v2 DRAFT version correctly loaded when debug enabled
2026-01-13 22:22:10 +08:00

1.0 KiB
Raw Blame History

⚠️ 重要:需要重启服务器

修改内容

  • 添加XML格式支持
  • 更新消息处理逻辑
  • 添加XML内容解析器

重启步骤

  1. 停止当前服务器

    按 Ctrl+C在运行服务器的终端中
    
  2. 重新启动服务器

    cd D:\MyCursor\AIclinicalresearch\backend
    npm run dev
    
  3. 确认日志 应该看到:

    ✅ 微信服务号回调控制器已初始化(明文模式)
    Registered route: GET /wechat/patient/callback-plain (明文模式)
    Registered route: POST /wechat/patient/callback-plain (明文模式, XML)
    

微信公众平台配置

配置项
URL https://devlocal.xunzhengyixue.com/wechat/patient/callback-plain
Token IitPatientWechat2026JanToken
消息加解密方式 明文模式
数据格式 XML ⚠️ 必须选择XML

重启服务器后,即可在微信公众平台提交配置!