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