diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index d20e9e931..76728d4cf 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -1798,7 +1798,9 @@ class QueryController extends BaseController $map['ui.role_name'] = ['like', $roleName . '%']; } if ($userAccount != '') { - $map['ui.user_account'] = ['like', $userAccount . '%']; + $userId = M('user', 'tab_')->where(array('account' => ['like', $userAccount . '%']))->getField('id'); + $userId = $userId ?? 0; + $map['uc.user_id'] = $userId; } if ($isSelf) { $map['uc.promote_id'] = $queryPromote['id'];