用户动态如果没有绑定则跳到绑定页面.
This commit is contained in:
parent
7b5a7a93f5
commit
e73c946806
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue