This commit is contained in:
yuanke 2016-08-22 10:42:40 +08:00
parent 42c6e4c5c5
commit 2e86738fd2
1 changed files with 3 additions and 3 deletions

View File

@ -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]}" and return
redirect_to "/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]}" and return
redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}",layout: nil and return
else
redirect_to "/wechat/user_activities##{@path}" and return
redirect_to "/wechat/user_activities##{@path}",layout: nil and return
end
# redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}" and return
end