|
|
|
@ -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
|
|
|
|
|
# 评测完成后,还原评测中的状态
|
|
|
|
|