mirror of
https://github.com/xszyou/Fay.git
synced 2026-09-01 15:12:25 +08:00
4e85827068
问题:GUI实时显示时间由客户端生成,数据库存储时间由服务端独立生成, 页面刷新后时间不一致。 修复: 1. createtime 存储精度从秒级改为毫秒级 2. add_content 返回 (content_id, now_ms) 元组 3. update_content 更新内容时同步更新 createtime,返回毫秒时间戳 4. panelReply 统一使用数据库写入时的时间戳格式化后发送给前端 5. 前端优先使用服务端 timetext,保证实时与刷新后完全一致 6. flask_server 加载历史消息时兼容旧秒级和新毫秒级时间戳 7. 新增 util.ms_to_timetext() 工具函数 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>