mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-22 11:41:27 +08:00
parent
029de410a8
commit
edc6edbfda
@ -78,6 +78,7 @@ class Chapter extends Service
|
||||
$data['parent_id'] = $parent->id;
|
||||
$data['free'] = $validator->checkFreeStatus($post['free']);
|
||||
$data['priority'] = $chapterRepo->maxLessonPriority($post['parent_id']);
|
||||
$parentId = $parent->id;
|
||||
} else {
|
||||
$data['priority'] = $chapterRepo->maxChapterPriority($post['course_id']);
|
||||
$data['parent_id'] = $parentId;
|
||||
@ -120,7 +121,7 @@ class Chapter extends Service
|
||||
}
|
||||
|
||||
if ($attrs === false) {
|
||||
throw new \RuntimeException("Create Chapter {$course->model} Attrs Failed");
|
||||
throw new \RuntimeException("Create Chapter Related Attrs Failed");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user