昵称为空

dev_daiao
daiao 5 years ago
parent 85b002e1d4
commit 50cc7dd3a7

@ -17,7 +17,7 @@ class Oauth::CreateOrFindQqAccountService < ApplicationService
new_user = true
# 新用户
login = User.generate_login('Q')
@user = User.new(login: login, type: 'User', status: User::STATUS_ACTIVE)
@user = User.new(login: login, nickname: " ", type: 'User', status: User::STATUS_ACTIVE)
end
ActiveRecord::Base.transaction do

@ -24,8 +24,7 @@ class Oauth::CreateOrFindWechatAccountService < ApplicationService
new_user = true
# 新用户
login = User.generate_login('w')
@user = User.new(login: login, type: 'User', status: User::STATUS_ACTIVE)
#@user = User.new(login: login, nickname: result['nickname'], type: 'User', status: User::STATUS_ACTIVE)
@user = User.new(login: login, nickname: " ", type: 'User', status: User::STATUS_ACTIVE)
end

Loading…
Cancel
Save