|
|
@ -50,7 +50,8 @@ class Course extends Controller{ |
|
|
|
{ |
|
|
|
{ |
|
|
|
$params = $this->postForm(); |
|
|
|
$params = $this->postForm(); |
|
|
|
// $params['create_time'] = time(); |
|
|
|
// $params['create_time'] = time(); |
|
|
|
$result = CourseModel::insert($params); |
|
|
|
$model = new CourseModel(); |
|
|
|
|
|
|
|
$result = $model->save($params); |
|
|
|
return $this->renderSuccess('新增成功'); |
|
|
|
return $this->renderSuccess('新增成功'); |
|
|
|
return $this->renderSuccess('添加成功'); |
|
|
|
return $this->renderSuccess('添加成功'); |
|
|
|
} |
|
|
|
} |
|
|
|