diff --git a/app/friendship/controller/FriendController.php b/app/friendship/controller/FriendController.php index e5d6101..2518534 100644 --- a/app/friendship/controller/FriendController.php +++ b/app/friendship/controller/FriendController.php @@ -33,6 +33,7 @@ class FriendController extends HomeBaseController $request = request(); $where['role'] = ['eq', 1]; $where['user_type'] = ['eq', 2]; + $where['id'] = ['neq', session('user.id')]; $keyword = $request->param('keyword'); if (!empty($keyword)) { $where['mobile'] = ['like', "%$keyword%"];