2 Commits

Author SHA1 Message Date
as2252258 011e0cd9b8 1 2021-12-12 06:06:15 +08:00
as2252258 a7531432d4 改名 2021-12-07 16:43:19 +08:00
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class UniqueValidator extends BaseValidator
}
$model = $this->model;
if (!$this->model->getIsCreate()) {
if (!$this->model->getIsNowExample()) {
return true;
}
if ($model::query()->where([$this->field => $param[$this->field]])->exists()) {
-1
View File
@@ -196,7 +196,6 @@ class Validator extends BaseValidator
}
break;
}
$this->validators = null;
$this->validators = [];
return !isset($isTrue);
}