diff --git a/market/controllers/api/sylive/Members.php b/market/controllers/api/sylive/Members.php index c0744544..abb90d8c 100644 --- a/market/controllers/api/sylive/Members.php +++ b/market/controllers/api/sylive/Members.php @@ -46,8 +46,8 @@ class Members extends BaseController if ($keywords) { $where["(uname LIKE '%{$keywords}%' OR mobile LIKE '%{$keywords}%' OR nickname LIKE '%{$keywords}%')"] = null; } else { - $uname && $where["uname LIKE '%{$uname}%'"] = $uname; - $mobile && $where["mobile LIKE '%{$mobile}%'"] = $mobile; + $uname && $where["uname LIKE '%{$uname}%'"] = null; + $mobile && $where["mobile LIKE '%{$mobile}%'"] = null; } $count = $this->mdSyliveUser->count($where); if ($count) {