From fe48b78c84d1c31ca6709294e721a3ce64431909 Mon Sep 17 00:00:00 2001 From: daiao <35855898@qq.com> Date: Sat, 16 Mar 2019 15:34:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E6=B5=8B=E6=97=A0=E6=B3=95=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E4=BF=A1=E6=81=AF"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/games_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/games_service.rb b/app/services/games_service.rb index 7f0e6df4..49366bb2 100644 --- a/app/services/games_service.rb +++ b/app/services/games_service.rb @@ -517,6 +517,7 @@ class GamesService # status为2已经通过关,是重新评测 if game.status == 2 resubmit = params[:resubmit] + game.update_attributes!(:retry_status => 1) if params[:first].to_i == 1 else # 重新评测不影响已通关的实训状态;first为第一次评测,通过前端JS轮询获取 game.update_attributes!(:status => 1) if params[:first].to_i == 1