|
|
@ -517,6 +517,7 @@ class GamesService
|
|
|
|
# status为2已经通过关,是重新评测
|
|
|
|
# status为2已经通过关,是重新评测
|
|
|
|
if game.status == 2
|
|
|
|
if game.status == 2
|
|
|
|
resubmit = params[:resubmit]
|
|
|
|
resubmit = params[:resubmit]
|
|
|
|
|
|
|
|
game.update_attributes!(:retry_status => 1) if params[:first].to_i == 1
|
|
|
|
else
|
|
|
|
else
|
|
|
|
# 重新评测不影响已通关的实训状态;first为第一次评测,通过前端JS轮询获取
|
|
|
|
# 重新评测不影响已通关的实训状态;first为第一次评测,通过前端JS轮询获取
|
|
|
|
game.update_attributes!(:status => 1) if params[:first].to_i == 1
|
|
|
|
game.update_attributes!(:status => 1) if params[:first].to_i == 1
|
|
|
|