修改request

This commit is contained in:
wuyanwen 2020-01-25 22:23:21 +08:00
parent 9c1eb59961
commit b18390739f

View File

@ -47,12 +47,6 @@ class CatchRequest extends Request
if ($this->batch) { if ($this->batch) {
$validate->batch($this->batch); $validate->batch($this->batch);
} }
// 自定义规则
if (method_exists($this, 'newRules')) {
foreach ($this->newRules() as $rule) {
$validate->extend($rule->type(), [$rule, 'verify'], $rule->message());
}
}
/** /**
* // 场景设置验证 * // 场景设置验证