From aa8b31c1bfe7743f8bcdbccd386b2e3900b681be Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Sat, 7 Oct 2023 16:26:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E8=AF=8A=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E4=BF=AE=E6=94=B9=E9=99=90=E5=88=B6=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/DoctorInquiryService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/DoctorInquiryService.php b/app/Services/DoctorInquiryService.php index 41ac74a..290d267 100644 --- a/app/Services/DoctorInquiryService.php +++ b/app/Services/DoctorInquiryService.php @@ -345,7 +345,7 @@ class DoctorInquiryService extends BaseService $params[] = ['inquiry_config_id', '=', $doctor_inquiry_config['inquiry_config_id']]; $params[] = ['created_at', '>', date('Y-m-01', time())]; $modify_month_count = DoctorInquiryPriceRecord::getCount($params); - if ($modify_month_count >= 5000) { + if ($modify_month_count >= 5) { // 每自然月仅限调整5次 Db::rollBack(); return fail(HttpEnumCode::HTTP_ERROR, "问诊价格每自然月仅限调整5次"); @@ -356,7 +356,7 @@ class DoctorInquiryService extends BaseService $params[] = ['inquiry_config_id', '=', $doctor_inquiry_config['inquiry_config_id']]; $params[] = ['created_at', '>', date('Y-m-d', time())]; $modify_month_count = DoctorInquiryPriceRecord::getCount($params); - if ($modify_month_count >= 100000) { + if ($modify_month_count >= 1) { // 问诊价格每日仅限调整1次 Db::rollBack(); return fail(HttpEnumCode::HTTP_ERROR, "问诊价格每日仅限调整1次");