|
|
|
@ -219,10 +219,10 @@ class GamesController < ApplicationController
|
|
|
|
|
@had_passed_testsests_public_count = had_test.blank? ? 0 : had_test.select{|had_test| had_test.result == true && had_test.is_public == true}.count
|
|
|
|
|
@mirror_name = @myshixun.mirror_name
|
|
|
|
|
@final_score = ((@shixun.status <= 1) ? 0 : @game.final_score.to_i)
|
|
|
|
|
if @myshixun.shixun.status <= 1 || (@game.final_score != 0 && @game.answer_open?)
|
|
|
|
|
if @myshixun.shixun.status <= 1 || (@game.final_score != 0 && @game.answer_open > 0)
|
|
|
|
|
@gold = 0
|
|
|
|
|
else
|
|
|
|
|
if @game.answer_open? && @game.final_score ==0
|
|
|
|
|
if @game.answer_open > 0 && @game.final_score ==0
|
|
|
|
|
@gold = -@game_challenge.score.to_i
|
|
|
|
|
else
|
|
|
|
|
@gold = @game.final_score.to_i
|
|
|
|
|