From b0ec9ceb02b05be3999b9b55c2e53665745239b0 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Thu, 3 Jul 2025 17:57:44 +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=BA2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/enterprise/model/Friend.php | 2 +- app/manage/controller/Config.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/enterprise/model/Friend.php b/app/enterprise/model/Friend.php index 750e6bc..831890a 100644 --- a/app/enterprise/model/Friend.php +++ b/app/enterprise/model/Friend.php @@ -59,7 +59,7 @@ class Friend extends BaseModel ]; $friend_ids = self::where($where)->column('friend_id'); if ($friend_ids) { - self::where('id', 'in', $friend_ids)->update(['is_blacklist' => 0]); + self::where('friend_id', 'in', $friend_ids)->update(['is_blacklist' => 0]); } } } \ No newline at end of file diff --git a/app/manage/controller/Config.php b/app/manage/controller/Config.php index e9c262a..e8c760d 100644 --- a/app/manage/controller/Config.php +++ b/app/manage/controller/Config.php @@ -76,7 +76,7 @@ class Config extends BaseController if ($name == 'chatInfo') { $status = $value['autoAddUser']['status'] ?? 0; $user_ids = $value['autoAddUser']['user_ids'] ?? []; - if ($status == 0 && $user_ids) { + if ($status == 1 && $user_ids) { foreach ($user_ids as $uid) { Friend::syncCancelBlacklist($uid); }