This commit is contained in:
yuanke 2016-08-22 15:44:20 +08:00
parent 7f8a6f931b
commit c275557fa7
1 changed files with 5 additions and 4 deletions

View File

@ -404,10 +404,6 @@ class WechatsController < ActionController::Base
def user_activities
if params[:state] == nil
return
end
@appid = Wechat.config.appid
## sign
@ -422,6 +418,11 @@ class WechatsController < ActionController::Base
logger.info "user_activities!!!!!!!!!!!!!!"
logger.info params
#保证下面的redirect_to "/wechat/user_activities##{@path}?id=...不会往下走
if params[:state] == nil
return
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")
@path = '/login'