添加编号找到用户功能
This commit is contained in:
parent
f7f4f7fc04
commit
2123c650e0
@ -691,7 +691,7 @@ class UserLogic extends Logic
|
||||
public static function searchSn($post)
|
||||
{
|
||||
if ($post['keyword']) {
|
||||
$result = User::where(['sn' => $post['keyword'], 'del' => 0])->field('id, nickname, avatar as abs_avatar')->find();
|
||||
$result = User::where(['sn' => $post['keyword'], 'del' => 0])->field('id, nickname, avatar as abs_avatar')->find()->toArray();
|
||||
if ($result) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user