diff --git a/app/controllers/wechats_controller.rb b/app/controllers/wechats_controller.rb index 1deb55d63..364e8f22e 100644 --- a/app/controllers/wechats_controller.rb +++ b/app/controllers/wechats_controller.rb @@ -431,11 +431,11 @@ class WechatsController < ActionController::Base session[:wechat_openid] = open_id if params[:code] if params[:userid] - redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}&userid=#{params[:userid]}",layout: nil and return + render "/wechat/user_activities##{@path}?id=#{params[:id]}&userid=#{params[:userid]}",layout: nil and return elsif params[:id] - redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}",layout: nil and return + render "/wechat/user_activities##{@path}?id=#{params[:id]}",layout: nil and return else - redirect_to "/wechat/user_activities##{@path}",layout: nil and return + render "/wechat/user_activities##{@path}",layout: nil and return end # redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}" and return end