This commit is contained in:
2023-07-31 23:08:59 +08:00
parent 45d0712cb2
commit 00a2125efc
15 changed files with 1334 additions and 1612 deletions
+1 -1
View File
@@ -536,7 +536,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
}
$validate = $this->resolve($rule);
if (!$validate->validation()) {
return \Kiri::getLogger()->addError($validate->getError(), 'mysql');
return \Kiri::getLogger()->failure($validate->getError(), 'mysql');
} else {
return TRUE;
}