From ae18fafb1f474ea273a968119be71c4c6dd2cd8c Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Thu, 3 Jul 2025 18:11:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=AE=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=88=96=E5=AE=A2=E6=9C=8D=EF=BC=8C=E9=BB=91?= =?UTF-8?q?=E5=90=8D=E5=8D=95=E6=B8=85=E7=A9=BA3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/enterprise/model/Friend.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/enterprise/model/Friend.php b/app/enterprise/model/Friend.php index 831890a..fd3eed3 100644 --- a/app/enterprise/model/Friend.php +++ b/app/enterprise/model/Friend.php @@ -61,5 +61,15 @@ class Friend extends BaseModel if ($friend_ids) { self::where('friend_id', 'in', $friend_ids)->update(['is_blacklist' => 0]); } + $where = [ + 'friend_user_id ' => $uid, + 'is_blacklist' => 1, + 'delete_time' => 0, + 'status' => 1 + ]; + $friend_ids = self::where($where)->column('friend_id'); + if ($friend_ids) { + self::where('friend_id', 'in', $friend_ids)->update(['is_blacklist' => 0]); + } } } \ No newline at end of file