Commit a49880c4 authored by 杨培's avatar 杨培

修复提交课程所属课堂ID错误的问题

parent e8a5a5c1
......@@ -112,6 +112,8 @@ class MyCourseController extends \yii\web\Controller
$userId = Yii::$app->user->identity->getId();
$classId = $this->classStatus['id'];
//验证临时ID
$tmpId = $request->post('tmp');
......@@ -123,7 +125,7 @@ class MyCourseController extends \yii\web\Controller
//课程数据
$courseData = [
'user_id' => $userId,
'classed_id' => $classId
'class_id' => $classId
];
foreach (['name', 'teacher', 'price', 'free_time', 'intro', 'preview'=>'preview_pic', 'recommend'] as $postKey => $key) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment