You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
599 B
19 lines
599 B
6 years ago
|
json.(@base_date, :st, :discusses_count, :game_count, :record_onsume_time, :prev_game, :next_game, :praise_count,
|
||
|
:user_praise, :time_limit, :tomcat_url, :is_teacher, :myshixun_manager, :game, :challenge,
|
||
|
:shixun, :myshixun)
|
||
|
json.user do
|
||
|
json.partial! 'users/user', user: @user
|
||
|
json.identity @identity
|
||
|
end
|
||
|
|
||
|
if @st == 0
|
||
|
json.(@task_result, :tpm_modified, :tpm_cases_modified, :mirror_name, :has_answer)
|
||
|
|
||
|
# 测试集相关
|
||
|
json.partial! 'games/testset_list'
|
||
|
else
|
||
|
json.has_answer @has_answer
|
||
|
json.choose_test_cases @choose_test_cases
|
||
|
json.chooses @chooses
|
||
|
end
|