This commit is contained in:
yuanke 2016-08-22 14:57:28 +08:00
parent 0c381ad53d
commit 9e4aaa767c
1 changed files with 3 additions and 1 deletions

View File

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