mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]用户列表搜索demo更新
This commit is contained in:
parent
709dbd844b
commit
34abaaedb5
@ -47,7 +47,7 @@ class User extends BasicAdmin {
|
|||||||
if (isset($get['username']) && $get['username'] !== '') {
|
if (isset($get['username']) && $get['username'] !== '') {
|
||||||
$db->where('username', 'like', "%{$get['username']}%");
|
$db->where('username', 'like', "%{$get['username']}%");
|
||||||
}
|
}
|
||||||
if (isset($get['phone'] && $get['phone'] !== '')) {
|
if (isset($get['phone']) && $get['phone'] !== '') {
|
||||||
$db->where('phone', 'like', "%{$get['phone']}%");
|
$db->where('phone', 'like', "%{$get['phone']}%");
|
||||||
}
|
}
|
||||||
// 实例化并显示
|
// 实例化并显示
|
||||||
|
Loading…
x
Reference in New Issue
Block a user