feat(消息模块): 优化消息查询逻辑,支持俱乐部消息展示

- 修改了 User、Activity、Circle、Club 和 Game 控制器中的消息查询逻辑
- 增加了对俱乐部成员的判断,使得俱乐部消息能够展示给相关用户
- 调整了消息表中的字段名称,统一使用 user_id 替代 target_id
- 优化了订单创建流程,只在需要时创建订单
- 更新了活动模型中的 costKey 属性,以适应新的费用结构
- 添加了新的费用类型翻译,以支持多退少补等功能
This commit is contained in:
2025-06-06 12:00:13 +08:00
parent d788227ff1
commit c9a8b9d5e8
9 changed files with 63 additions and 32 deletions

View File

@@ -227,8 +227,7 @@ class Club extends Base
'type' => 3,
'name' => $club->name,
'avatar' => $club->logo,
'from_id' => $this->auth->id,
'target_id' => $club->id,
'from_id' => $club->id,
'content' => json_encode([
'topic' => '俱乐部加入申请',
'俱乐部名称' => $club->name,
@@ -301,8 +300,7 @@ class Club extends Base
'type' => 3,
'name' => $club->name,
'avatar' => $club->logo,
'from_id' => $this->auth->id,
'target_id' => $params['club_id'],
'from_id' => $club->id,
'content' => json_encode([
'topic' => '俱乐部加入申请',
'俱乐部名称' => $club->name,