|
|
|
@ -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
|