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