作者 邓超

xxx

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