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)