From 8dbed563a158887b458bc4daecc0c69532930299 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 18 Nov 2019 13:55:39 +0800 Subject: [PATCH] =?UTF-8?q?oj=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/hack_user_lastest_codes_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/hack_user_lastest_codes_controller.rb b/app/controllers/hack_user_lastest_codes_controller.rb index efadc3685..752a79cb3 100644 --- a/app/controllers/hack_user_lastest_codes_controller.rb +++ b/app/controllers/hack_user_lastest_codes_controller.rb @@ -55,7 +55,7 @@ class HackUserLastestCodesController < ApplicationController @my_hack.update_attribute(:submit_status, 0) end rescue Exception => e - + logger.error("#########listen_result: #{e.message}") end end @@ -74,7 +74,8 @@ class HackUserLastestCodesController < ApplicationController testCases: testCases, platform: @my_hack.language, codeFileContent: @my_hack.code, - timeLimit: @hack.time_limit, sec_key: Time.now.to_s} + timeLimit: @hack.time_limit, + sec_key: Time.now.to_s} interface_post request_url, debug_params, error_status, error_msg # 每次评测提交数增加 @hack.increment!(:submit_num)