|
|
@ -467,7 +467,13 @@ class ShixunsController < ApplicationController
|
|
|
|
def update_learn_setting
|
|
|
|
def update_learn_setting
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
ActiveRecord::Base.transaction do
|
|
|
|
ActiveRecord::Base.transaction do
|
|
|
|
@shixun.update_attributes!(shixun_params.merge(vnc_evaluate: 1))
|
|
|
|
update_params =
|
|
|
|
|
|
|
|
if params[:shixun][:vnc]
|
|
|
|
|
|
|
|
shixun_params.merge(vnc_evaluate: 1)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
shixun_params
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
@shixun.update_attributes!(update_params)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
rescue => e
|
|
|
|
rescue => e
|
|
|
|
uid_logger_error("实训学习页面设置失败--------#{e.message}")
|
|
|
|
uid_logger_error("实训学习页面设置失败--------#{e.message}")
|
|
|
|