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