diff --git a/app/controllers/wechats_controller.rb b/app/controllers/wechats_controller.rb index e9da12c38..2dab17703 100644 --- a/app/controllers/wechats_controller.rb +++ b/app/controllers/wechats_controller.rb @@ -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