json.array! @games do |game| challenge = game.challenge json.partial! 'challenges/challenge', locals: { challenge: challenge } json.status game.status json.star game.star 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] end