解决未登录也能文件上传的问题

This commit is contained in:
molong
2022-01-09 22:49:38 +08:00
parent 53ef2ad583
commit 35fcb75a50
5 changed files with 571 additions and 592 deletions

View File

@@ -1,19 +1,16 @@
<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace app\controller\admin;
class Upload extends Base {
public function _empty() {
$controller = controller('common/Upload');
$action = $this->request->action();
return $controller->$action();
}
<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace app\controller\admin;
use app\controller\Upload as Uploads;
class Upload extends Base {
use Uploads;
}