|
|
@ -1,8 +1,9 @@
|
|
|
|
json.status 0
|
|
|
|
json.status 0
|
|
|
|
json.message "返回成功"
|
|
|
|
json.message "返回成功"
|
|
|
|
json.data do
|
|
|
|
json.data do
|
|
|
|
json.(@hack_user, :id, :status, :error_line, :error_msg, :expected_output,
|
|
|
|
json.(@hack_user, :id, :status, :error_line, :expected_output,
|
|
|
|
:input, :output, :execute_time, :execute_memory, :created_at, :code)
|
|
|
|
:input, :output, :execute_time, :execute_memory, :created_at, :code)
|
|
|
|
|
|
|
|
json.error_msg regexp_msg(@hack_user.error_msg)
|
|
|
|
json.language @hack_user.language
|
|
|
|
json.language @hack_user.language
|
|
|
|
json.name @hack_user.hack.name
|
|
|
|
json.name @hack_user.hack.name
|
|
|
|
json.myproblem_identifier @my_hack.identifier
|
|
|
|
json.myproblem_identifier @my_hack.identifier
|
|
|
|