This commit is contained in:
2021-02-24 18:57:53 +08:00
parent fe36053ce0
commit 8ca6ab24b5
+1 -2
View File
@@ -78,7 +78,6 @@ trait Condition
$_tmp = []; $_tmp = [];
if (empty($where)) return ''; if (empty($where)) return '';
foreach ($where as $key => $value) { foreach ($where as $key => $value) {
var_dump($value);
$_value = is_string($value) ? $value : $this->conditionMap($value); $_value = is_string($value) ? $value : $this->conditionMap($value);
if (empty($_value)) continue; if (empty($_value)) continue;
@@ -100,11 +99,11 @@ trait Condition
private function conditionMap($condition): string private function conditionMap($condition): string
{ {
$array = []; $array = [];
var_dump($condition);
if (is_string($condition) || empty($condition)) { if (is_string($condition) || empty($condition)) {
return $condition; return $condition;
} }
var_dump($condition);
foreach ($condition as $key => $value) { foreach ($condition as $key => $value) {
$array = $this->resolve($array, $key, $value); $array = $this->resolve($array, $key, $value);
} }