修改
This commit is contained in:
parent
fd1798875f
commit
6b7146486c
@ -60,8 +60,8 @@ return [
|
||||
*
|
||||
*/
|
||||
'upload' => [
|
||||
'image' => 'filesize:' . 1024 * 5 . '|fileExt:jpg,png,gif,jpeg',
|
||||
'file' => 'filesize:' . 1024 * 10 . '|fileExt:txt,pdf,xlsx,xls,html'
|
||||
'image' => 'fileSize:' . 1024 * 1024 * 5 . '|fileExt:jpg,png,gif,jpeg',
|
||||
'file' => 'fileSize:' . 1024 * 1024 * 10 . '|fileExt:txt,pdf,xlsx,xls,html'
|
||||
]
|
||||
|
||||
];
|
||||
|
@ -4,7 +4,6 @@ namespace catcher\base;
|
||||
use app\Request;
|
||||
use catcher\exceptions\FailedException;
|
||||
use catcher\exceptions\ValidateFailedException;
|
||||
use think\Validate;
|
||||
|
||||
class CatchRequest extends Request
|
||||
{
|
||||
@ -42,7 +41,7 @@ class CatchRequest extends Request
|
||||
{
|
||||
if (method_exists($this, 'rules')) {
|
||||
try {
|
||||
$validate = new Validate();
|
||||
$validate = app('validate');
|
||||
// 批量验证
|
||||
if ($this->batch) {
|
||||
$validate->batch($this->batch);
|
||||
|
Loading…
x
Reference in New Issue
Block a user