You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
18
hyhproject/admin/validate/Accreds.php
Executable file
18
hyhproject/admin/validate/Accreds.php
Executable file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace wstmart\admin\validate;
|
||||
use think\Validate;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 认证商家验证器
|
||||
*/
|
||||
class Accreds extends Validate{
|
||||
protected $rule = [
|
||||
['accredName' ,'require|max:30','请输入认证名称|认证名称不能超过30个字符'],
|
||||
['accredImg' ,'require','请上传图标']
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['accredName','accredImg'],
|
||||
'edit' => ['accredName'],
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user