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

Loading…
Cancel
Save