dev_daiao
daiao 5 years ago
parent 88cc8d5610
commit 67d8c53ad6

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

Loading…
Cancel
Save