mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进Builder类的insertAll方法 过滤非标量数据
This commit is contained in:
@@ -578,8 +578,11 @@ abstract class Builder
|
||||
throw new Exception(' fields not exists :[' . $key . ']');
|
||||
}
|
||||
unset($data[$key]);
|
||||
} else {
|
||||
} elseif (is_scalar($val)) {
|
||||
$data[$key] = $this->parseValue($val);
|
||||
} else {
|
||||
// 过滤掉非标量数据
|
||||
unset($data[$key]);
|
||||
}
|
||||
}
|
||||
$value = array_values($data);
|
||||
|
||||
Reference in New Issue
Block a user