This commit is contained in:
2021-02-25 18:04:29 +08:00
parent 0455b89a44
commit 3c4a30473a
+1 -2
View File
@@ -72,12 +72,11 @@ class SqlBuilder extends Component
{
$string = $array = [];
var_dump($attributes);
foreach ($attributes as $attribute => $value) {
$string[] = $attribute . '=' . $attribute . $opera . $value;
}
if (empty($string) || empty($array)) {
if (empty($string)) {
return $this->addError('None data update.');
}