测试切换语言存储

video_transcode
daiao 5 years ago
parent bcd3c464d8
commit c08ee598e6

@ -88,7 +88,7 @@ class HackUserLastestCodesController < ApplicationController
# 只有编译出错时,才正则匹配错误行数
error_line=
if ojEvaResult['status'] == "4" || ojEvaResult['status'] == "5"
regular_match_error_line ojEvaResult['outPut'], @my_hack.hack.language
regular_match_error_line ojEvaResult['outPut'], @hack.language
end
# debug 与submit 公用的参数

@ -3,7 +3,7 @@ json.message "返回成功"
json.data do
json.(@hack_user, :id, :status, :error_line, :error_msg, :expected_output,
:input, :output, :execute_time, :execute_memory, :created_at, :code)
json.language @hack_user.hack.language
json.language @hack_user.language
json.name @hack_user.hack.name
json.myproblem_identifier @my_hack.identifier
json.pass_sets_count @pass_set_count

@ -0,0 +1,5 @@
class AddLanguageForHackUserCodes < ActiveRecord::Migration[5.2]
def change
add_column :hack_user_codes, :language, :string
end
end
Loading…
Cancel
Save