class MainController < ApplicationController skip_before_action :check_sign skip_before_action :user_setup skip_before_action :setup_laboratory def first_stamp render :json => { status: 0, message: Time.now.to_i } end def index domain_session = params[:_educoder_session] if domain_session uid_logger("main start domain_session is #{domain_session}") if cookies[:_educoder_session] != domain_session cookies[:_educoder_session] = nil cookies[:_educoder_session] = domain_session end uid_logger("main start is #{cookies[:_educoder_session]}") end if params[:path] && params[:path].split("/").first == "educoderh5" render file: 'public/h5build/index.html', :layout => false end render file: 'public/react/build/index.html', :layout => false end end