daiao 5 years ago
parent d5d0b22105
commit e291922fbe

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