dev_unstable^2
daiao 5 years ago
parent a0e3edaa62
commit 4c6a24b69b

@ -209,12 +209,12 @@ class ChallengesController < ApplicationController
@challenge.update_column(:modify_time, Time.now)
# 测试集的
@shixun.myshixuns.update_all(:system_tip => 0)
end
logger.info("########---#{params[:challenge]}")
logger.info("########---#{params[:challenge]['show_type']}")
if params[:challenge][:show_type].to_i == -1
@challenge.update_attributes(picture_path: nil, web_route: nil, expect_picture_path: nil, original_picture_path: nil)
end
end
# 关卡评测执行文件如果被修改,需要修改脚本内容
script = modify_shixun_script @shixun, @shixun.evaluate_script
@shixun.shixun_info.update_column(:evaluate_script, script)

Loading…
Cancel
Save