改名
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user