From f8253373e48767f33126177454bf3a234c68a952 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 19 Nov 2019 11:56:52 +0800 Subject: [PATCH] 1 --- app/controllers/games_controller.rb | 1 + 1 file changed, 1 insertion(+) 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的更新时间