This commit is contained in:
as2252258@163.com
2021-02-28 00:53:25 +08:00
parent a29420299a
commit b99eac8748
+5 -1
View File
@@ -123,7 +123,11 @@ trait Builder
if (empty($where)) return '';
if (is_string($where)) return $where;
foreach ($where as $key => $value) {
$_value = is_string($value) ? $value : $this->conditionMap($value);
if (is_string($value) || is_string($key)) {
$_value = is_string($key) ? sprintf('%s=\'%s\'', $key, $value) : $value;
} else {
$_value = $this->conditionMap($value);
}
if (empty($_value)) continue;