weizong song 3 months ago
parent d9d534a146
commit acfe2683b3

@ -40,7 +40,7 @@ class TrainingController extends CommonController
$page_size = request()->page_size ? (int)request()->page_size : 3;
//todo:配置视频开启用户
if ($this->manager->username == "liuyu") {
if (in_array($this->manager->username, ["liuyu","wujin"])) {
$data = $data->with(["type" => function ($query) {
$query->select("id", "name");
}])->select("id", "type_id", "title", "poster", "video", "published_at")->orderBy("published_at","desc")->paginate($page_size);

Loading…
Cancel
Save