Merge branch 'master' of https://github.com/yanwenwu/catch-admin
This commit is contained in:
commit
4c48d0c71d
@ -65,8 +65,8 @@ return [
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
'upload' => [
|
'upload' => [
|
||||||
'image' => 'filesize:' . 1024 * 5 . '|fileExt:jpg,png,gif,jpeg',
|
'image' => 'fileSize:' . 1024 * 1024 * 5 . '|fileExt:jpg,png,gif,jpeg',
|
||||||
'file' => 'filesize:' . 1024 * 10 . '|fileExt:txt,pdf,xlsx,xls,html'
|
'file' => 'fileSize:' . 1024 * 1024 * 10 . '|fileExt:txt,pdf,xlsx,xls,html'
|
||||||
],
|
],
|
||||||
/**
|
/**
|
||||||
* 路由中间件
|
* 路由中间件
|
||||||
@ -76,7 +76,6 @@ return [
|
|||||||
\catchAdmin\user\AuthTokenMiddleware::class,
|
\catchAdmin\user\AuthTokenMiddleware::class,
|
||||||
\catchAdmin\permissions\PermissionsMiddleware::class,
|
\catchAdmin\permissions\PermissionsMiddleware::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 后台事件
|
* 后台事件
|
||||||
*
|
*
|
||||||
|
@ -4,7 +4,6 @@ namespace catcher\base;
|
|||||||
use app\Request;
|
use app\Request;
|
||||||
use catcher\exceptions\FailedException;
|
use catcher\exceptions\FailedException;
|
||||||
use catcher\exceptions\ValidateFailedException;
|
use catcher\exceptions\ValidateFailedException;
|
||||||
use think\Validate;
|
|
||||||
|
|
||||||
class CatchRequest extends Request
|
class CatchRequest extends Request
|
||||||
{
|
{
|
||||||
@ -42,7 +41,7 @@ class CatchRequest extends Request
|
|||||||
{
|
{
|
||||||
if (method_exists($this, 'rules')) {
|
if (method_exists($this, 'rules')) {
|
||||||
try {
|
try {
|
||||||
$validate = new Validate();
|
$validate = app('validate');
|
||||||
// 批量验证
|
// 批量验证
|
||||||
if ($this->batch) {
|
if ($this->batch) {
|
||||||
$validate->batch($this->batch);
|
$validate->batch($this->batch);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user