From f0b9448dbb7f425c498f2bbef30cfa90f189fceb Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 20 Jul 2019 18:33:33 +0800 Subject: [PATCH] .. --- app/controllers/shixuns_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 572ab525b..14e6217d8 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -525,7 +525,7 @@ class ShixunsController < ApplicationController Rails.logger.info("111111111102#{params[:reset] != 1}") # 因为读写分离有延迟,所以如果是重置来的请求可以先跳过,重置过来的params[:reset]为1 - if current_myshixun && params[:reset] != 1 + if current_myshixun && params[:reset] != "1" games = current_myshixun.games # 如果TPM和TPI的管卡数不相等或者关卡顺序错了,说明实训被极大的改动,需要重置,实训发布前打过的实训都需要重置 if is_shixun_reset?(games, min_challenges, current_myshixun)