// +---------------------------------------------------------------------- namespace app\validate\merchant; use think\Validate; class StoreServiceValidate extends Validate { protected $failException = true; protected $rule = [ 'uid|客服' => 'require|array', 'uid.id|客服' => 'require|integer', 'nickname|客服名称' => 'require|max:12', 'avatar|客服头像' => 'max:250', 'status|状态' => 'require|in:0,1', 'is_verify|核销状态' => 'require|in:0,1', 'notify|订单通知状态' => 'require|in:0,1', 'sort|排序' => 'require|integer', 'customer|展示统计管理状态' => 'require|in:0,1', ]; }