hasMany('ActiveTime', 'active_id') ->order(['active_time' => 'asc']); } /** * 活动会场详情 * @param $activeId * @param array $with * @return static|null * @throws \think\exception\DbException */ public static function detail($activeId, $with = []) { return static::get($activeId, $with); } }