dev_daiao
daiao 5 years ago
parent df6d956bdc
commit 1c1cd295c9

@ -86,12 +86,12 @@ class HackUserLastestCodesController < ApplicationController
{input: params[:input]} {input: params[:input]}
end end
testCases = Base64.urlsafe_encode64(test_sets.to_json) testCases = Base64.urlsafe_encode64(test_sets.to_json)
codeFileContent = Base64.urlsafe_encode64(@my_hack.code) #codeFileContent = Base64.urlsafe_encode64(@my_hack.code)
debug_params = {execMode: exec_mode, debug_params = {execMode: exec_mode,
tpiID: @my_hack.identifier, tpiID: @my_hack.identifier,
testCases: testCases, testCases: testCases,
platform: @my_hack.language, platform: @my_hack.language,
codeFileContent: codeFileContent, codeFileContent: @my_hack.code,
timeLimit: @hack.time_limit, timeLimit: @hack.time_limit,
sec_key: Time.now.to_i} sec_key: Time.now.to_i}
interface_json_post request_url, debug_params, error_status, error_msg interface_json_post request_url, debug_params, error_status, error_msg

Loading…
Cancel
Save