|
@@ -78,7 +78,14 @@ class CourseModel extends Model
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+ * 获取课程详细信息
|
|
|
+ * @param $courseId
|
|
|
+ * @return array|Model|null
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\DbException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ */
|
|
|
public function getCourseDetail($courseId)
|
|
|
{
|
|
|
$courseDetail = Db::name('education_course')
|