This commit is contained in:
2021-02-24 18:50:04 +08:00
parent 25098bfaea
commit a66b7bf450
+6 -2
View File
@@ -81,9 +81,13 @@ trait Condition
$_tmp = [];
if (empty($where)) return '';
foreach ($where as $value) {
$_value = is_string($value) ? $value : $this->conditionMap($value);
foreach ($where as $key => $value) {
if (is_string($key)) {
$_tmp = $this->conditionMap([$key, $value]);
break;
}
$_value = is_string($value) ? $value : $this->conditionMap($value);
if (empty($_value)) continue;
$_tmp[] = $_value;