From 24b17f900a03092fa14afd217f344915689106e1 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 12 Jul 2022 11:30:20 +0800 Subject: [PATCH] Update Upload.php --- app/admin/controller/api/Upload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/controller/api/Upload.php b/app/admin/controller/api/Upload.php index 070b6d4e7..9aed412d8 100644 --- a/app/admin/controller/api/Upload.php +++ b/app/admin/controller/api/Upload.php @@ -153,7 +153,8 @@ class Upload extends Controller SystemFile::mQuery()->layTable(function () { $this->title = '文件选择器'; }, function (QueryHelper $query) { - $query->like('name,hash')->dateBetween('create_at')->order('id desc'); + $query->like('name,hash')->dateBetween('create_at'); + $query->whereLike('mime', 'image/%')->order('id desc'); $query->where(['status' => 2, 'issafe' => 0, 'uuid' => AdminService::getUserId()]); }); }