From 16a6e6dfcd46325c4c7756c580220b93bc45e850 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Fri, 5 May 2023 09:45:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0mysql=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E5=90=83=E6=95=B0=E9=87=8F=20=E6=9A=82=E6=97=B6=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E9=A6=96=E9=A1=B5=E6=88=91=E7=9A=84=E4=B8=80=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/IndexService.php | 12 ++++++------ config/autoload/databases.php | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Services/IndexService.php b/app/Services/IndexService.php index 1a07412..374f1f8 100644 --- a/app/Services/IndexService.php +++ b/app/Services/IndexService.php @@ -170,18 +170,18 @@ class IndexService extends BaseService $module = ModuleModel::getList($params); }); + // 我的医生 $my_doctor = []; co(function () use ($wg, &$my_doctor,$user_info) { defer(function() use ($wg) { $wg->done(); }); - - $PatientDoctorService = new PatientDoctorService(); - - if (!empty($user_info)) { - $my_doctor = $PatientDoctorService->getIndexPatientDoctorLimit($user_info['client_user_id']); - } +// $PatientDoctorService = new PatientDoctorService(); +// +// if (!empty($user_info)) { +// $my_doctor = $PatientDoctorService->getIndexPatientDoctorLimit($user_info['client_user_id']); +// } }); // 推荐医生 diff --git a/config/autoload/databases.php b/config/autoload/databases.php index 7ac123b..7adca88 100644 --- a/config/autoload/databases.php +++ b/config/autoload/databases.php @@ -24,8 +24,8 @@ return [ 'collation' => env('DB_COLLATION', 'utf8_unicode_ci'), 'prefix' => env('DB_PREFIX', ''), 'pool' => [ - 'min_connections' => 10, - 'max_connections' => 50, + 'min_connections' => 20, + 'max_connections' => 100, 'connect_timeout' => 10.0, 'wait_timeout' => 5.0, 'heartbeat' => -1,