sso^2
jingquan huang 5 years ago
parent 55e96aaf18
commit d5d0b22105

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