From fa14757c7a848e5d8cfe698e1afe6eb795fa1445 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 14 Feb 2020 16:31:22 +0800 Subject: [PATCH] =?UTF-8?q?h5=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/main_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index 244b7f540..55948c6aa 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -19,7 +19,8 @@ class MainController < ApplicationController uid_logger("main start is #{cookies[:_educoder_session]}") end - if params[:path] && params[:path].split("/").first == "educoderh5" + + if params[:path]&.include?("educoderh5") && params[:path].split("/").first == "educoderh5" render file: 'public/h5build/index.html', :layout => false else render file: 'public/react/build/index.html', :layout => false