This commit is contained in:
2023-04-16 02:46:54 +08:00
parent d22955233c
commit 0bf69d576d
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -541,7 +541,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
}
$validate = $this->resolve($rule);
if (!$validate->validation()) {
return $this->logger->addError($validate->getError(), 'mysql');
return \Kiri::getLogger()->addError($validate->getError(), 'mysql');
} else {
return TRUE;
}