From 859cbcd2f7a322a389834f5a4ea0e5a517d06af1 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 27 Apr 2023 18:12:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3=E5=BC=B9?= =?UTF-8?q?=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/UserDoctorService.php | 4 +++- app/Services/UserService.php | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Services/UserDoctorService.php b/app/Services/UserDoctorService.php index 9e8280f..fa99b38 100644 --- a/app/Services/UserDoctorService.php +++ b/app/Services/UserDoctorService.php @@ -327,7 +327,9 @@ class UserDoctorService extends BaseService $data['app_type'] = 1; $data['client_type'] = 2; $data['popup_type'] = 1; - $data['popup_link'] = ""; // 跳转地址 + $data['popup_title'] = "温馨提示"; + $data['popup_content'] = "快速了解在线问诊、公益问诊和快速问诊"; + $data['popup_link'] = "/Pages/yishi/manual_detail/index?manual_id=1"; // 跳转地址 $popup = Popup::addPopup($data); if (empty($popup)){ Db::rollBack(); diff --git a/app/Services/UserService.php b/app/Services/UserService.php index bf501ea..258daa7 100644 --- a/app/Services/UserService.php +++ b/app/Services/UserService.php @@ -534,6 +534,10 @@ class UserService extends BaseService return success(); } + foreach ($popup as $key => $item){ + $popup[$key]['popup_content'] = json_decode($item['popup_content']); + } + return success($popup->toArray()); }