提交模式

dev_daiao
daiao 5 years ago
parent 8ab31d7ae0
commit 5605332295

@ -56,9 +56,9 @@ class HackUserLastestCodesController < ApplicationController
execute_memory: ojEvaResult['executeMem']}
ActiveRecord::Base.transaction do
# debug模式与submit模式
if params[:execMode] == "debug"
if ojEvaResult['execMode'] == "debug"
save_debug_data ds_params
elsif params[:execMode] == "submit"
elsif ojEvaResult['execMode'] == "submit"
save_submit_data ds_params
end
# 评测完成后,还原评测中的状态

Loading…
Cancel
Save