分享修改
This commit is contained in:
parent
24a0bfea77
commit
bce3513424
|
@ -424,14 +424,14 @@ class WechatsController < ActionController::Base
|
||||||
|
|
||||||
session[:wechat_openid] = open_id
|
session[:wechat_openid] = open_id
|
||||||
if params[:code]
|
if params[:code]
|
||||||
if params[:userid]
|
# 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]}" and return
|
||||||
elsif params[:id]
|
# elsif params[:id]
|
||||||
redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}" and return
|
|
||||||
else
|
|
||||||
redirect_to "/wechat/user_activities##{@path}" and return
|
|
||||||
end
|
|
||||||
# redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}" and return
|
# redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}" and return
|
||||||
|
# else
|
||||||
|
# redirect_to "/wechat/user_activities##{@path}" and return
|
||||||
|
# end
|
||||||
|
redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}" and return
|
||||||
end
|
end
|
||||||
# end
|
# end
|
||||||
render 'wechats/user_activities', layout: nil
|
render 'wechats/user_activities', layout: nil
|
||||||
|
|
Loading…
Reference in New Issue