From 68b6caa893d576315d7a8ff00b1002eb30710664 Mon Sep 17 00:00:00 2001 From: lihan <3398341942@qq.com> Date: Thu, 8 Nov 2018 14:49:18 +0800 Subject: [PATCH] 赠送积分和角色管理 --- app/friendship/controller/FriendController.php | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) 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%"]; -- libgit2 0.24.0