|
|
@@ -4,6 +4,59 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
+## v1.0.2998 (2026-12-03)
|
|
|
+
|
|
|
+### 文档
|
|
|
+- 研发负责人收割轮报告 2026-12-04 0155 (S1 BLOCK 互斥门)
|
|
|
+- +backend: 成文 memberId 规范并补齐 currentMemberId JWT 兜底
|
|
|
+
|
|
|
+### 其他
|
|
|
+- - 1.1 统一约定表新增「成员身份参数」行
|
|
|
+- - 新增 1.2「身份参数 memberId 规范」:两套身份键口径(userId=users.id /
|
|
|
+- memberId=family_members.id)、禁止 userId 冒充 memberId、前端取值链
|
|
|
+- URL > currentChildId > currentMemberId、未传则 JWT currentMemberId 兜底、
|
|
|
+- Controller 标准写法代码片段、账号级本人操作口径、管理/规划师显式指定
|
|
|
+- 目标成员例外。原「新增接口检查清单」顺延为 1.3。
|
|
|
+- - 新增审计清单 docs/superpowers/specs/memberid-currentmemberid-audit.md
|
|
|
+- 后端兜底补齐(19 个文件 / 40 个端点)
|
|
|
+- 统一改法:方法签名追加 @RequestAttribute(currentMemberId, required=false),
|
|
|
+- 取值改为 ParamUtils.getLong(x.get("memberId"), currentMemberId) 或等价三元。
|
|
|
+- 补齐端点:
|
|
|
+- - CircleController: my-circles/join/leave/pending-members
|
|
|
+- (同文件 discover/feed 族已有兜底,仅这 4 处不一致)
|
|
|
+- - CommissionController: my-referrer
|
|
|
+- - GameRecordController: record/history/best/stats
|
|
|
+- (saveRecord 曾会把 memberId=null 写入库)
|
|
|
+- - HealthGrowthRecordController: list
|
|
|
+- - HealthMeditationController: list
|
|
|
+- - HealthReportController: report/bodyfat-save、nutrition/{deficiency,profile,
|
|
|
+- deficiency-summary,trend}、analysis(indicators/rebuild 为 admin 显式,未改)
|
|
|
+- - IndicatorFavoriteController: toggle/list/remove
|
|
|
+- - ProblemSurveyController: submit(曾可能写 memberId=null)
|
|
|
+- - ReportSurveyController: create
|
|
|
+- - PurchaseController: challenge/progress、challenge/update
|
|
|
+- (null 时服务层发 member_id=null 查询恒返回空,静默失败)
|
|
|
+- - ai/CoachFamilyBoardController: drill-down
|
|
|
+- - ai/CoachRecommendController: recommend/adopt
|
|
|
+- - family/ManualDimensionScoreController: latest/history
|
|
|
+- - family/MbtiController: latest/history
|
|
|
+- - family/RelationshipQualityController: calculate
|
|
|
+- - mind/InnatePortraitController: portrait/reading/trajectory
|
|
|
+- - mind/TraditionalMirrorController: mirror
|
|
|
+- - product/ProductOrderController: activity/sign-in
|
|
|
+- - user/PortraitController: get/generate/regenerate
|
|
|
+- 不加兜底(理由详见审计文档 §3):管理员/规划师显式指定目标成员
|
|
|
+- (admin/*、FamilyMembersController 的 switch/kick/recycle/update/editable、
|
|
|
+- HealthStatusController.internal/get、CircleController.approve 等);
|
|
|
+- null 有独立聚合/账号级语义(DanReportController.list、
|
|
|
+- HealthReportController.report/list、HealthStatusController.get/save、
|
|
|
+- EnergyController.sandbox、SurveyController.confirm-questions 等);
|
|
|
+- 服务层已有等价自解析(DoaController、CouponController.exchange、
|
|
|
+- PointsExchangeController.submit、AIChatController 画像注入等)。
|
|
|
+- 自验:mvn -q clean compile(cfc-backend)通过。
|
|
|
+-
|
|
|
+
|
|
|
+
|
|
|
## v1.0.2997 (2026-12-03)
|
|
|
|
|
|
### 其他
|