From 17670003e2ecacf9021175bb7ec77d6619c7c7e5 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 4 Nov 2019 14:40:33 +0800 Subject: [PATCH] fix bug --- app/views/myshixuns/challenges.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/myshixuns/challenges.json.jbuilder b/app/views/myshixuns/challenges.json.jbuilder index de0864665..e16896451 100644 --- a/app/views/myshixuns/challenges.json.jbuilder +++ b/app/views/myshixuns/challenges.json.jbuilder @@ -6,6 +6,6 @@ json.array! @games do |game| json.identifier get_game_identifier(@shixun.task_pass, game, @identity) json.get_gold game.user_get_gold_and_experience(@shixun.status, challenge)[0] json.get_experience game.user_get_gold_and_experience(@shixun.status, challenge)[1] - json.view_answer_time view_answer_time(game, user_id) + json.view_answer_time view_answer_time(game, current_user.id) json.finished_time game.end_time end \ No newline at end of file