@@ -35,7 +35,7 @@ class BaseAuth | |||
$whereKey = []; | |||
$respones = new \ReflectionClass($setModel); | |||
foreach ($withSearch as $fieldName) { | |||
if (!is_array($fieldName) && $fieldName != 0) { | |||
if ($fieldName !== 0) { | |||
$method = 'search' . Str::studly($fieldName) . 'Attr'; | |||
if ($respones->hasMethod($method) || $fieldName == 'is_show') { | |||
$with[] = $fieldName; |