diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 23c72c5dc..9ce95843d 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -770,6 +770,7 @@ class GamesController < ApplicationController #return if @game.status >= 2 cost_time = (Time.now.to_i - @game.play_time.to_i) + @game.cost_time.to_i @game.update_attributes(cost_time: cost_time, play_sign: 0) + render_ok end # 同步challenge的更新时间