From 086f2b2bf3ba8740e042a4b1bc22cb0efb2ff916 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Tue, 9 May 2023 14:11:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=B9=E7=AA=97=E4=B8=BA?= =?UTF-8?q?=E5=B7=B2=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/UserService.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Services/UserService.php b/app/Services/UserService.php index 9f77dab..dc27c70 100644 --- a/app/Services/UserService.php +++ b/app/Services/UserService.php @@ -539,6 +539,14 @@ class UserService extends BaseService foreach ($popup as $key => $item){ $popup[$key]['popup_content'] = json_decode($item['popup_content']); + + // 修改为已读 + $params = array(); + $params['popup_id'] = $item['popup_id']; + + $data = array(); + $data['status'] = 1; + Popup::edit($params,$data); } return success($popup->toArray());