Update Upload.php

This commit is contained in:
Anyon 2022-07-12 11:30:20 +08:00
parent 5a0b7d4ef3
commit 24b17f900a

View File

@ -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()]);
});
}