This commit is contained in:
yuanke 2016-08-22 14:59:50 +08:00
parent 9e4aaa767c
commit d5a7d10f5d
1 changed files with 1 additions and 0 deletions

View File

@ -434,6 +434,7 @@ class WechatsController < ActionController::Base
session[:wechat_openid] = open_id
if params[:code]
#不跳转至绑定界面的标志
session.delete("login")
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