|
|
b705cad6fe
|
update pay ui
|
2025-12-03 13:43:55 +08:00 |
|
|
|
f73eb3b9ec
|
update pay ui
|
2025-12-03 12:39:59 +08:00 |
|
|
|
aaaf66ca09
|
update pay ui
|
2025-12-03 08:02:49 +08:00 |
|
|
|
cb4f5b6281
|
update pay ui
|
2025-12-03 07:26:12 +08:00 |
|
|
|
2feb4938c1
|
update pay ui
|
2025-12-02 19:44:46 +08:00 |
|
|
|
e950075f96
|
update pay ui
|
2025-12-02 12:01:59 +08:00 |
|
|
|
931d3fc8be
|
update pay ui
|
2025-12-02 10:49:50 +08:00 |
|
|
|
a3a2960297
|
update pay ui
|
2025-12-02 10:33:55 +08:00 |
|
|
|
a00231a275
|
update pay function
|
2025-11-29 18:28:32 +08:00 |
|
|
|
28c3e65431
|
update pay function
|
2025-11-29 08:16:41 +08:00 |
|
|
|
2a71924076
|
update pay function
|
2025-11-27 11:28:57 +08:00 |
|
zdl
|
4560467523
|
feat: 修改小程序跳转链接
|
2025-11-27 10:46:14 +08:00 |
|
zdl
|
dc9c33729f
|
feat: 回调处理增加 H5 模式判断,重定向到前端回调页
|
2025-11-26 14:51:51 +08:00 |
|
|
|
d549b3db5e
|
update pay function
|
2025-11-25 19:38:50 +08:00 |
|
|
|
2c3165313f
|
update pay function
|
2025-11-25 16:49:44 +08:00 |
|
|
|
c446b33aa7
|
update pay function
|
2025-11-25 16:20:39 +08:00 |
|
|
|
1627146e29
|
update pay function
|
2025-11-24 20:15:19 +08:00 |
|
|
|
7ca8e40c8c
|
update pay function
|
2025-11-24 19:28:52 +08:00 |
|
|
|
cc0decd032
|
update pay function
|
2025-11-23 23:32:35 +08:00 |
|
|
|
37c81ae221
|
update pay function
|
2025-11-23 23:17:12 +08:00 |
|
|
|
414aee4190
|
update pay function
|
2025-11-23 22:11:03 +08:00 |
|
|
|
b12751374c
|
update pay function
|
2025-11-23 22:06:07 +08:00 |
|
|
|
6a0e3e8d85
|
update pay function
|
2025-11-23 21:42:48 +08:00 |
|
|
|
20beda4db6
|
update pay function
|
2025-11-23 21:04:34 +08:00 |
|
|
|
bc7fb31dd0
|
update pay function
|
2025-11-23 20:34:49 +08:00 |
|
|
|
4199bd9b09
|
update pay function
|
2025-11-23 19:44:49 +08:00 |
|
|
|
8d118ccfff
|
update pay function
|
2025-11-23 16:57:02 +08:00 |
|
|
|
1da3363a40
|
update pay function
|
2025-11-23 15:58:14 +08:00 |
|
|
|
c6b7e76b99
|
update pay function
|
2025-11-20 18:00:21 +08:00 |
|
|
|
9575bc91eb
|
update pay function
|
2025-11-20 08:33:26 +08:00 |
|
|
|
75f1fd67b5
|
update pay function
|
2025-11-20 08:18:02 +08:00 |
|
|
|
b93fe14cc0
|
update pay function
|
2025-11-20 08:02:34 +08:00 |
|
|
|
094ee36876
|
update pay function
|
2025-11-20 07:57:15 +08:00 |
|
|
|
0ebb9f3d13
|
update pay function
|
2025-11-20 07:46:50 +08:00 |
|
|
|
e9364aaff2
|
update pay function
|
2025-11-19 19:41:26 +08:00 |
|
zdl
|
0a6284289e
|
fix: 修复个人中心不显示新发表的评论问题
问题描述:
- 用户在事件中心发表评论后,打开个人中心看不到新评论
- 个人中心"我的评论"区域始终为空或显示旧数据
根本原因:
- 项目存在两套独立的评论系统:
1. 旧系统(EventComment 表)- 个人中心查询此表
2. 新系统(Post 表)- 事件中心写入此表
- 创建评论时写入 Post 表,但个人中心查询 EventComment 表
- 两个表完全独立,数据不同步
修复方案(统一到 Post 系统):
1. 后端新增 API:GET /api/account/events/posts
- 查询 Post 表中当前用户的所有评论
- 返回格式完全兼容旧 EventComment.to_dict()
- 新增 event_title 字段(改进点,旧 API 没有)
2. 前端修改 API 调用:Center.js
- 将 /api/account/events/comments 改为 /api/account/events/posts
- 无需修改数据渲染逻辑(格式兼容)
修改文件:
- app.py (第 4144-4187 行) - 新增 get_my_event_posts API
- 查询 Post 表(user_id 过滤 + 按时间倒序)
- JOIN 查询关联的 Event(获取 event_title)
- 返回兼容格式:author(字符串), likes, created_at, event_title
- src/views/Dashboard/Center.js (第 105 行) - 修改 API 调用路径
- 修改前:GET /api/account/events/comments
- 修改后:GET /api/account/events/posts
数据兼容性:
- author 字段:字符串类型(与旧 EventComment 一致)
- likes 字段:映射自 likes_count
- created_at 字段:ISO 8601 格式
- 新增:event_title 字段(个人中心可显示评论关联的事件)
修复效果:
- 用户在事件中心发表评论 → 立即在个人中心看到新评论 ✅
- 评论显示完整信息:内容、时间、关联事件标题 ✅
- 前端无需修改渲染逻辑(完全兼容) ✅
🤖 Generated with Claude Code
|
2025-11-17 11:25:18 +08:00 |
|
|
|
3ea93ea4cb
|
update ui
|
2025-11-14 18:48:39 +08:00 |
|
|
|
5a45dc586c
|
update ui
|
2025-11-14 18:03:55 +08:00 |
|
|
|
041b15fa0b
|
update ui
|
2025-11-14 15:36:02 +08:00 |
|
|
|
181228ff10
|
update ui
|
2025-11-14 15:20:58 +08:00 |
|
|
|
9b1c6c693c
|
update ui
|
2025-11-14 15:14:23 +08:00 |
|
|
|
b43a5c0d1e
|
update ui
|
2025-11-14 15:08:32 +08:00 |
|
|
|
bf89506470
|
优惠码Bug修复
|
2025-11-07 08:13:12 +08:00 |
|
|
|
5582c8237c
|
优惠码Bug修复
|
2025-11-07 07:53:07 +08:00 |
|
|
|
9bf98eaaf3
|
加入优惠码机制,预置3个优惠码
|
2025-11-05 14:39:20 +08:00 |
|
|
|
d77b51c393
|
实现多选重要性,采用逗号分隔
|
2025-11-04 15:33:23 +08:00 |
|
|
|
23d6e38c4f
|
fix
|
2025-11-04 09:45:12 +08:00 |
|
|
|
3f367a241e
|
修改总结
|
2025-11-03 16:10:35 +08:00 |
|
zdl
|
691627ac6c
|
Merge branch '1028_bugfix' into feature
* 1028_bugfix:
手机号格式适配-前端修改
添加微信扫码的几种其他状态
整合register端口进入login端口
|
2025-10-29 16:27:31 +08:00 |
|
|
|
eec59801e5
|
手机号格式适配-前端修改
|
2025-10-29 11:20:41 +08:00 |
|