lili
f3ea06c154
fix(account): 修个人中心资料更新 jsonb 类型错致 update 500(反假绿挖出)
AccountProfileMapper.updateByAccountUserIdAndVersion 用 LambdaUpdateWrapper.set
写 profile_snapshot(PG jsonb 列),默认不走 DO 上 @TableField 的 JsonbStringTypeHandler,
按 varchar 绑定 →「column is jsonb but expression is character varying」→ update 500
(insert 走 typeHandler 故首次 create 侥幸 OK、对已存在 profile 的 update 必 500)。
set 显式指定 JsonbStringTypeHandler 与 insert 路径对齐。
新增 account-profile-update.spec.ts(真后端写路 e2e:改公开署名→PATCH /profile→
code:0+version 乐观锁自增+UI 回显;只改署名不动昵称以不破坏 live-read 的 nickname 断言)
正是它暴露此 bug——curl 实证旧 jar PATCH 500、rebuild 后 code:0。全量 e2e 39/0。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 13:19:16 -07:00
..
2026-06-15 00:22:33 -07:00
2026-06-21 12:55:50 -07:00
2026-06-21 13:19:16 -07:00
2026-06-20 20:36:20 -07:00
2026-06-15 05:20:50 -07:00
2026-06-19 07:35:53 -07:00
2026-06-21 09:01:11 -07:00
2026-06-21 10:42:27 -07:00
2026-06-21 10:42:27 -07:00
2026-06-20 13:53:29 -07:00
2026-06-15 00:41:58 -07:00
2026-06-21 09:42:29 -07:00
2026-06-20 19:59:40 -07:00
2026-06-20 20:13:20 -07:00
2026-06-15 08:34:36 -07:00
2026-06-20 20:48:14 -07:00
2026-06-15 04:30:43 -07:00
2026-06-20 20:21:45 -07:00
2026-06-20 20:31:27 -07:00
2026-06-15 07:08:09 -07:00
2026-06-21 04:50:08 -07:00
2026-06-21 09:11:28 -07:00
2026-06-21 10:20:28 -07:00
2026-06-15 01:29:35 -07:00