|
|
|
@ -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)
|
|
|
|
|