Update File.php

This commit is contained in:
Anyon 2022-06-27 15:42:03 +08:00
parent 84fcb3dc48
commit b1054f4390

View File

@ -21,7 +21,7 @@ use think\admin\helper\QueryHelper;
use think\admin\model\SystemFile; use think\admin\model\SystemFile;
/** /**
* 媒体文件管理 * 系统文件管理
* Class File * Class File
* @package app\admin\controller * @package app\admin\controller
*/ */
@ -40,7 +40,7 @@ class File extends Controller
]; ];
/** /**
* 媒体文件管理 * 系统文件管理
* @auth true * @auth true
* @menu true * @menu true
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
@ -50,7 +50,7 @@ class File extends Controller
public function index() public function index()
{ {
SystemFile::mQuery()->layTable(function () { SystemFile::mQuery()->layTable(function () {
$this->title = '媒体文件管理'; $this->title = '系统文件管理';
$this->xexts = SystemFile::mk()->distinct()->column('xext'); $this->xexts = SystemFile::mk()->distinct()->column('xext');
}, function (QueryHelper $query) { }, function (QueryHelper $query) {
$query->like('name,hash,xext')->dateBetween('create_at'); $query->like('name,hash,xext')->dateBetween('create_at');
@ -71,7 +71,7 @@ class File extends Controller
} }
/** /**
* 删除媒体文件 * 删除系统文件
* @auth true * @auth true
* @return void * @return void
*/ */