Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_course
SylorHuang 6 years ago
commit 120ca0d221

@ -409,12 +409,12 @@ class ShixunsController < ApplicationController
end
def propaedeutics
@content = Shixun.where(identifier: params[:identifier]).pluck(:propaedeutics)
@content = Shixun.find_by_identifier!(params[:identifier]).propaedeutics
end
# 更新背景知识
def update_propaedeutics
@shixun.update_column(:propaedeutics, params[:content])
@shixun.shixun_info.update_column(:propaedeutics, params[:content])
end
# 获取推荐实训接口 2个热门实训 + 2个最新实训

Loading…
Cancel
Save