微信审核链接修改
This commit is contained in:
parent
2e1e9391b6
commit
0eb1c1a392
|
@ -435,11 +435,10 @@ class WechatsController < ActionController::Base
|
|||
|
||||
session[:wechat_openid] = open_id
|
||||
if params[:code]
|
||||
if params[:state].match("review_class_member") || params[:state].match("review_project_member")
|
||||
# if params[:state].match("review_class_member") || params[:state].match("review_project_member")
|
||||
@path = params[:state].split('/')[0]
|
||||
useridstr = params[:state].split('/')[1]
|
||||
end
|
||||
|
||||
# end
|
||||
if useridstr
|
||||
redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}&#{useridstr}" and return
|
||||
elsif params[:id]
|
||||
|
|
Loading…
Reference in New Issue