This commit is contained in:
yuanke 2016-08-12 14:41:56 +08:00
parent 9fcb43b949
commit d60857eaea
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ class WechatsController < ActionController::Base
raise "请在微信中关注Trustie创新实践平台后再打开本页面" unless openid
uw = UserWechat.where(openid: openid).first
raise "还未绑定trustie帐户" unless uw
raise "还未绑定trustie帐户" unless (uw && uw.bindtype == 0)
logger.debug "get_bind ============= #{uw}"
user = uw.user