jingquan huang 5 years ago
parent 6496c19417
commit 3905693b31

@ -19,8 +19,8 @@ class MainController < ApplicationController
uid_logger("main start is #{cookies[:_educoder_session]}")
end
Rails.logger("params paths is #{params[:path]}")
if params[:path].split("/").first == "h5"
Rails.logger("params paths is #{params}")
if params[:path] == "h5"
render file: 'public/h5build/index.html', :layout => false
else
render file: 'public/react/build/index.html', :layout => false

Loading…
Cancel
Save