This commit is contained in:
parent
0c381ad53d
commit
9e4aaa767c
|
@ -434,7 +434,9 @@ class WechatsController < ActionController::Base
|
|||
session[:wechat_openid] = open_id
|
||||
if params[:code]
|
||||
#不跳转至绑定界面的标志
|
||||
session["login"] = false
|
||||
if params[:state] == "invite_code" || params[:state] == "project_invite_code" || params[:state] == "blog_comment" || params[:state] == "course_notice" || params[:state] == "project_discussion" || params[:state] == "course_discussion" || params[:state] == "homework" || params[:state] == "issues" || params[:state] == "journal_for_message"
|
||||
session["login"] = false
|
||||
end
|
||||
if params[:userid]
|
||||
redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}&userid=#{params[:userid]}" and return
|
||||
elsif params[:id]
|
||||
|
|
Loading…
Reference in New Issue