fix: 修复redis密码 优化权限
This commit is contained in:
@@ -9,30 +9,30 @@ class UploadFile extends Validate
|
||||
{
|
||||
/**
|
||||
* 定义验证规则
|
||||
* 格式:'字段名' => ['规则1','规则2'...]
|
||||
* 格式:'字段名' => ['规则1','规则2'...]
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $rule = [
|
||||
'images'=>[
|
||||
'fileSize' => 419430400,
|
||||
'fileExt' => 'jpg,jpeg,png,bmp,gif,svg,webp',
|
||||
'fileMime' => 'image/jpeg,image/png,image/gif,image/svg+xml'],
|
||||
'video'=>[
|
||||
'fileSize' => 419430400,
|
||||
'fileExt' => 'flv,swf,mkv,avi,rm,rmvb,mpeg,mpg,ogg,ogv,mov,wmv,mp4,webm,mp3,wav,mid'],
|
||||
'document'=>[
|
||||
'fileSize' => 419430400,
|
||||
'fileExt' => 'txt,doc,xls,ppt,docx,xlsx,pptx'],
|
||||
'files'=>[
|
||||
'fileSize' => 419430400,
|
||||
'fileExt' => 'exe,dll,sys,so,dmg,iso,zip,rar,7z,sql,pem,pdf,psd']
|
||||
];
|
||||
*/
|
||||
public $rule = [
|
||||
'images' => [
|
||||
'fileSize' => 419430400,
|
||||
'fileExt' => 'jpg,jpeg,png,bmp,gif,svg,webp',
|
||||
'fileMime' => 'image/jpeg,image/png,image/gif,image/svg+xml'],
|
||||
'video' => [
|
||||
'fileSize' => 419430400,
|
||||
'fileExt' => 'flv,swf,mkv,avi,rm,rmvb,mpeg,mpg,ogg,ogv,mov,wmv,mp4,webm,mp3,wav,mid'],
|
||||
'document' => [
|
||||
'fileSize' => 419430400,
|
||||
'fileExt' => 'txt,doc,xls,ppt,docx,xlsx,pptx'],
|
||||
'files' => [
|
||||
'fileSize' => 419430400,
|
||||
'fileExt' => 'exe,dll,sys,so,dmg,iso,zip,rar,7z,sql,pem,pdf,psd']
|
||||
];
|
||||
/**
|
||||
* 定义错误信息
|
||||
* 格式:'字段名.规则名' => '错误信息'
|
||||
* 格式:'字段名.规则名' => '错误信息'
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
*/
|
||||
protected $message = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user