From 5605332295c025811f1ade3cf152b3501cbffe56 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 18 Nov 2019 19:34:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/hack_user_lastest_codes_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/hack_user_lastest_codes_controller.rb b/app/controllers/hack_user_lastest_codes_controller.rb index 0638f54ba..9f44409fb 100644 --- a/app/controllers/hack_user_lastest_codes_controller.rb +++ b/app/controllers/hack_user_lastest_codes_controller.rb @@ -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 # 评测完成后,还原评测中的状态