From df8fede09aa6c7548e9a3ce63ffe585e7844754a Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Fri, 6 Jun 2025 12:16:19 +0800 Subject: [PATCH] update --- app/Models/CourseAppointmentTotal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/CourseAppointmentTotal.php b/app/Models/CourseAppointmentTotal.php index f87d695..3793d19 100755 --- a/app/Models/CourseAppointmentTotal.php +++ b/app/Models/CourseAppointmentTotal.php @@ -22,8 +22,8 @@ class CourseAppointmentTotal extends SoftDeletesModel public static function addByCourse($courseId) { // 判断课程是否已生成预约次数 - $has = self::where('course_id', $courseId)->first(); - if ($has) return true; +// $has = self::where('course_id', $courseId)->first(); +// if ($has) return true; // 没有正常则生成预约次数 $course = Course::find($courseId); $courseType = CourseType::find($course->type);