feat(俱乐部): 增加俱乐部详细介绍和关注数功能

This commit is contained in:
2025-05-18 20:20:01 +08:00
parent 55af3cb570
commit c3b0a47e6d
6 changed files with 102 additions and 5 deletions

View File

@@ -144,8 +144,14 @@ class Activity extends Base
Db::startTrans();
try {
$params = $this->request->param();
$game = Game::where('id', $params['act_id'] ?? NULL)
->where('date', $params['date'] ?? NULL)->find();
if (isset($params['game_id'])) {
$game = Game::get($params['game_id']);
} else {
$game = Game::where('id', $params['act_id'] ?? NULL)
->where('week', $params['week'] ?? NULL)
->where('date', $params['date'] ?? NULL)
->find();
}
if (empty($game)) {
$this->error('活动不存在');
}