From a2377ab13abd005afd60ea5491d30965ceb471be Mon Sep 17 00:00:00 2001 From: SylorHuang Date: Fri, 27 Sep 2019 15:44:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=B6=E6=97=B61=E5=88=86=E9=92=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/exercises_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/exercises_controller.rb b/app/controllers/exercises_controller.rb index 0943f69fb..28c011434 100644 --- a/app/controllers/exercises_controller.rb +++ b/app/controllers/exercises_controller.rb @@ -783,6 +783,7 @@ class ExercisesController < ApplicationController # 首页批量或单独 立即截止,截止时间为当前时间 def end_exercise + sleep(1) ActiveRecord::Base.transaction do begin check_ids = Exercise.where(id:params[:check_ids])