作者 邓超

xxx

@@ -166,7 +166,7 @@ function dbWhere(array $where, string $ar = 'and'):string{ @@ -166,7 +166,7 @@ function dbWhere(array $where, string $ar = 'and'):string{
166 // 只有一个值时就是 = 166 // 只有一个值时就是 =
167 $sql[] = "`{$f}` = ".$v[0]; 167 $sql[] = "`{$f}` = ".$v[0];
168 }elseif (count($v) > 1){ 168 }elseif (count($v) > 1){
169 - $sql[] = "`{$f}` ".($t=='notin'?'not in':'in')." (".implode(',',array_map(function ($v){return "'".addslashes($v)."'";},$v)).")"; 169 + $sql[] = "`{$f}` ".($t=='notin'?'not in':'in')." (".implode(',',$v).")";
170 } 170 }
171 171
172 }else{ 172 }else{