You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
20
hyhproject/common/validate/Informs.php
Executable file
20
hyhproject/common/validate/Informs.php
Executable file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace wstmart\common\validate;
|
||||
use think\Validate;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 订单投诉验证器
|
||||
*/
|
||||
class Informs extends Validate{
|
||||
protected $rule = [
|
||||
['informType' ,'in:1,2,3,4','无效的投诉类型!'],
|
||||
['informContent' ,'require|length:3,600','投诉内容不能为空|投诉内容应为3-200个字'],
|
||||
['respondContent' ,'require|length:3,600','应诉内容不能为空|应诉内容应为3-200个字'],
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['informType','informContent'],
|
||||
'edit' => ['informType','informContent'],
|
||||
'respond' =>['respondContent'],
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user