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);