This commit is contained in:
yuanke 2016-08-14 15:33:24 +08:00
parent 7e40c2447f
commit a7ef293356
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ class WechatsController < ActionController::Base
render 'wechats/open_wechat', layout: nil and return render 'wechats/open_wechat', layout: nil and return
end end
unless user_binded?(open_id) && 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" unless (user_binded?(open_id) || 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")
@path = '/login' @path = '/login'
else else
if params[:state] == 'myclass' if params[:state] == 'myclass'