This commit is contained in:
parent
7f8a6f931b
commit
c275557fa7
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue