From 25005da55c7e5fcc4091bbc0ed647e0d723a2dd3 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Fri, 21 Feb 2025 09:45:17 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=A7=86=E9=A2=91=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=99=A8=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/v1/Video.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/admin/controller/v1/Video.php b/app/admin/controller/v1/Video.php index 0df12ecd..afad6f44 100644 --- a/app/admin/controller/v1/Video.php +++ b/app/admin/controller/v1/Video.php @@ -40,7 +40,7 @@ class Video $query->field(['id', 'name']); }]) ->withSearch(['name', 'created_at'], [ - 'name' => $params['name'] ?? null, + 'name' => $params['name'] ?? null, 'created_at' => !empty($params['created_at']) ? explode(",", $params['created_at']) : null ]) ->categoryId($params['category_id'] ?? null) @@ -217,7 +217,7 @@ class Video $query->field(['id', 'name']); }]) ->withSearch(['name', 'createtd_at'], [ - 'name' => $params['name']??null, + 'name' => $params['name']??null, 'created_at' => !empty($params['created_at']) ? explode(',', $params['created_at']) : null, ]) ->categoryId($params['category_id']??null) @@ -226,10 +226,10 @@ class Video ->bindAttr('category', ['category_name' => 'name']) ->hidden(['category_id', 'category']) ->each(function ($item) use($domain, $image_path, $video_path) { - $item->image = $domain . $image_path . '/' . $item->image; - $item->video = $domain . $video_path . '/' . $item->video; + $item->image = $domain . $image_path . '/' . $item->image; + $item->video = $domain . $video_path . '/' . $item->video; $item->recommend = $item->recommend == 1 ? '是' : '否'; - $item->status = $item->status == 1 ? '启用' : '禁用'; + $item->status = $item->status == 1 ? '启用' : '禁用'; return $item; }); }