|
|
@ -80,11 +80,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)
|
|
|
|
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: @my_hack.code,
|
|
|
|
codeFileContent: codeFileContent,
|
|
|
|
timeLimit: @hack.time_limit,
|
|
|
|
timeLimit: @hack.time_limit,
|
|
|
|
sec_key: Time.now.to_i}
|
|
|
|
sec_key: Time.now.to_i}
|
|
|
|
interface_post request_url, debug_params, error_status, error_msg
|
|
|
|
interface_post request_url, debug_params, error_status, error_msg
|
|
|
|