用户动态如果没有绑定则跳到绑定页面.

This commit is contained in:
guange 2016-05-31 19:43:27 +08:00
parent 7b5a7a93f5
commit e73c946806
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class WechatsController < ActionController::Base
openid = get_openid_from_code(code)
@wechat_user = user_binded?(openid)
unless @wechat_user
redirect_to :login
redirect_to login_wechat_path
return
end