From 43198f814f97ab900d097d6c3cb2e105dc251168 Mon Sep 17 00:00:00 2001 From: haomingming Date: Sun, 4 Jan 2026 16:36:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=A2=9E=E5=8A=A0=E5=B9=B4?= =?UTF-8?q?=E5=AE=A1=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/IndexService.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/Services/IndexService.php b/app/Services/IndexService.php index 293c288..c4425fe 100644 --- a/app/Services/IndexService.php +++ b/app/Services/IndexService.php @@ -12,7 +12,7 @@ use App\Model\PharmacistAuditStatistic; use App\Model\User; use App\Model\UserDoctor as UserDoctorModel; use App\Model\UserPharmacist; -use Hyperf\Utils\Parallel; +use App\Model\SystemConfig; use Hyperf\Utils\WaitGroup; /** @@ -247,10 +247,20 @@ class IndexService extends BaseService $info['introduction_status'] = $doctor['introduction_status'];// 个人简介审核状态(0:未审核 1:审核通过 2:审核中 3:审核失败) $info['is_welfare_cooperation'] = $doctor['is_welfare_cooperation'];// 是否公益问诊合作医生(可把公益问诊设为0元) + // 获取系统配置 + $is_annual_review = 0; + $params = array(); + $params['system_config_id'] = 1; + $system_config = SystemConfig::getOne($params); + if (!empty($system_config)){ + $is_annual_review = $system_config['is_annual_review']; + } + $data = array(); $data['banner'] = $banner ?? [];// banner $data['info'] = $info;// 医生数据 $data['doctor_inquiry_config'] = $doctor_inquiry_config;// 医生问诊配置 + $data['is_annual_review'] = $is_annual_review;// 年审开关 return success($data); }