简介问题

dev_daiao
daiao 5 years ago
parent f722e56f74
commit 1586e03930

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

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

Loading…
Cancel
Save