修复内容: - 持久化聊天消息已读状态与未读边界,过滤系统通知红点,修正实时消息 ID、已读回执和前端徽标显示 - 完善账号级任务、商品接口和消息调度联动,补充相关服务端与引擎测试 - 新增 token 风控诊断包,保存页面、截图、Frame、选择器、网络事件和完整指纹信息 - 规范化无头 Chromium 的 User-Agent 与 Client Hints,覆盖 Playwright 主引擎和直接 CDP 备用引擎 - 增加可选证书错误兼容开关、真实 Chromium 指纹集成测试,并同步冻结规范 - 新增 SQLite、MySQL、Postgres 聊天状态迁移并重新构建嵌入式前端
9 lines
406 B
SQL
9 lines
406 B
SQL
-- +goose Up
|
|
-- Messages already stored before message-level read tracking was introduced
|
|
-- are history snapshots, not newly received unread messages.
|
|
UPDATE chat_messages SET read_status=2, read_at=CASE WHEN read_at=0 THEN strftime('%s','now') * 1000 ELSE read_at END
|
|
WHERE direction='incoming' AND read_status=0;
|
|
|
|
-- +goose Down
|
|
-- No safe reverse: the previous schema had no per-message read boundary.
|