You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
19
hyhproject/common/validate/GoodsConsult.php
Executable file
19
hyhproject/common/validate/GoodsConsult.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace wstmart\common\validate;
|
||||
use think\Validate;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 商品咨询验证器
|
||||
*/
|
||||
class GoodsConsult extends Validate{
|
||||
protected $rule = [
|
||||
['consultContent' ,'require|length:3,600','请输入咨询内容|咨询内容应为3-200个字'],
|
||||
['consultType' ,'in:1,2,3,4','请选择咨询类别'],
|
||||
['reply' ,'require|length:3,600','请输入回复内容|回复内容应为3-200个字']
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['consultContent','consultType'],
|
||||
'edit' => ['reply']
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user