Commit 98747540 authored by zhuwei's avatar zhuwei

user_nick 客户昵称搜索 原生

parent 05e2f2aa
...@@ -110,7 +110,10 @@ class User extends Basic ...@@ -110,7 +110,10 @@ class User extends Basic
$conditions['user_name'] = array( "like", "%" . trim($params['user_name']) . "%" ); $conditions['user_name'] = array( "like", "%" . trim($params['user_name']) . "%" );
$is_search = true; $is_search = true;
} }
if (isset($params['user_nick'])) {
$conditions['user_nick'] = array( "like", "%" . trim($params['user_nick']) . "%" );
$is_search = true;
}
if (isset($params['user_phone'])) { if (isset($params['user_phone'])) {
$conditions['user_phone'] = array( "like", "%" . trim($params['user_phone']) . "%" ); $conditions['user_phone'] = array( "like", "%" . trim($params['user_phone']) . "%" );
$is_search = true; $is_search = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment