From 67d8c53ad6164a8b6111d6cc903107d4edc042bd Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 18 Nov 2019 17:06:18 +0800 Subject: [PATCH] fixbug --- app/controllers/hack_user_lastest_codes_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/hack_user_lastest_codes_controller.rb b/app/controllers/hack_user_lastest_codes_controller.rb index 1a1eb4e62..ff5a9bef3 100644 --- a/app/controllers/hack_user_lastest_codes_controller.rb +++ b/app/controllers/hack_user_lastest_codes_controller.rb @@ -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