3 Commits
Author SHA1 Message Date
chenxing ed0c752f4a refactor(oapi): 提供方强制验签迁 starter——enforce-patterns+trust-registry(审计 P1-6 / L2-8)
build / build-push (push) Successful in 1m25s
- 删自写 svcitem/config/OpenApiAuthEnforceConfiguration(yh-app-auth starter 版
  RequireAppSignFilter 承接,order+11 行为等价;/oapi/site/list 面无签名即 401)
- yh.app-auth.server.enforce-patterns=[/oapi/*] + trust-registry=true(中央密钥链组合:
  trusted-apps 100018 先、Redis sign:app:* 链后,Notice/flow-center 同款)
- data-redis 自 test scope 提升编译期(yh-app-auth 侧 optional 不传递,生产 classpath
  此前并无该依赖);management.health.redis.enabled=false 防 Redis 抖动拉 DOWN 健康
- 测试 yml 同步 enforce-patterns:删自写副本后 SiteOapiIT 的 /oapi/** 401 断言由
  starter 过滤器承接;trust-registry 不进测试配置(IT 密封性,签名用例 100018 走
  trusted-apps 命中)

门禁:mvn test -Dskip.tests=false 413/413 绿(含 SiteOapiIT 6/6,本机 MySQL8+Redis)
2026-10-05 22:26:44 +08:00
chenxing e4b843cf00 refactor(base): GetUserMod 改为消费用户中心下发的模块树;默认关闭测试执行
build / build-push (push) Successful in 1m9s
两处独立改动:

1) CmsUserCenterService:用户中心已按平台契约 BoaModule.children 下发模块树,本仓原先
   按 parentId 重建父子关系的 buildModuleTree 成为空转(与 Notice/svc-hall 同构的重复实现)。
   现收敛为 toFrontendTree,只做前端 layout 需要的字段改名(path→page、id→modId、补
   usable/orderNumber)并递归映射 children;层级与兄弟顺序以上游 customId 序为准,本侧不
   重排。前端契约不变(children 恒为数组);拿到旧版用户中心的扁平结果(children=null)时
   退化为与今日一致的扁平菜单,不抛 NPE。保留原有平台不可达时的空菜单降级。

2) pom:新增属性 skip.tests(默认 true),surefire 以 <skipTests>${skip.tests}</skipTests>
   消费——测试执行默认关闭。原因:本工程 *IT 集成用例连本地 MySQL/Redis,缺中间件时成片报
   Communications link failure / 上下文加载失败(353 例中约 262 例),噪音掩盖真信号,且
   CI 构建本就是 mvn -DskipTests package,本地空跑约 20 分钟。只跳「执行」,测试源码仍编译,
   接口漂移仍可在编译期发现;需要跑时用 mvn test -Dskip.tests=false 临时打开。
2026-09-15 18:43:24 +08:00
chenxing 99cd26b3d2 init local code 2026-09-07 09:09:39 +08:00