From 765864c66e7dbfd1c67cfbc208771b0cba2f8485 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 14 Feb 2020 14:13:47 +0800 Subject: [PATCH] h5 --- app/controllers/main_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index e5feca54d..3e0e5388a 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -19,7 +19,7 @@ class MainController < ApplicationController uid_logger("main start is #{cookies[:_educoder_session]}") end - if params[:h5].present? + if params[:path] == "h5" render file: 'public/h5build/index.html', :layout => false else render file: 'public/react/build/index.html', :layout => false