This commit is contained in:
parent
be95b3990d
commit
42c6e4c5c5
|
@ -431,11 +431,11 @@ class WechatsController < ActionController::Base
|
|||
session[:wechat_openid] = open_id
|
||||
if params[:code]
|
||||
if params[:userid]
|
||||
render "/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]
|
||||
render "/wechat/user_activities##{@path}?id=#{params[:id]}" and return
|
||||
redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}" and return
|
||||
else
|
||||
render "/wechat/user_activities##{@path}" and return
|
||||
redirect_to "/wechat/user_activities##{@path}" and return
|
||||
end
|
||||
# redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}" and return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue