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