feat(俱乐部): 增加俱乐部详细介绍和关注数功能
This commit is contained in:
@@ -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('活动不存在');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user