微信注册和绑定判断BUG修改

This commit is contained in:
yuanke 2016-08-14 10:46:17 +08:00
parent 56da43221d
commit 91a64a67c5
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ module Mobile
raise "此用户已经绑定过公众号, 请换一个帐户试试" if user.user_wechat
if uw && !user.real?
if uw && !uw.real?
uw.migrate_user(user)
else
UserWechat.create!(
@ -69,7 +69,7 @@ module Mobile
:should_confirmation_password => true)
raise user.errors.full_messages.first if user.new_record?
if uw && !user.real?
if uw && !uw.real?
user.update_attributes(:lastname=>uw.user[:lastname])
uw.migrate_user(user)
else