微信审核链接修改

This commit is contained in:
yuanke 2016-08-24 09:45:18 +08:00
parent 2e1e9391b6
commit 0eb1c1a392
1 changed files with 2 additions and 3 deletions

View File

@ -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]