解决冲突
This commit is contained in:
parent
48d335ea31
commit
3bc5d0d2e0
|
|
@ -214,7 +214,8 @@ class GamesController < ApplicationController
|
|||
if @game.status == 2
|
||||
@game.next_game.update_attribute(:status, 0)
|
||||
game_passed_code(@game.id, game_challenge.try(:path), @myshixun.try(:gpid), 1)
|
||||
if !@game.answer_open && shixun.status > 1 reward_grade(@game.user, @game.id, @game.class, game_challenge.score)
|
||||
if !@game.answer_open && shixun.status > 1
|
||||
reward_grade(@game.user, @game.id, @game.class, game_challenge.score)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue