From 85b002e1d44652324965ffe694fc6c5578553d7d Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 30 Nov 2019 15:44:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=98=B5=E7=A7=B0=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/oauth/create_or_find_qq_account_service.rb | 3 +-- app/services/oauth/create_or_find_wechat_account_service.rb | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/services/oauth/create_or_find_qq_account_service.rb b/app/services/oauth/create_or_find_qq_account_service.rb index 7266d62a2..2b435707d 100644 --- a/app/services/oauth/create_or_find_qq_account_service.rb +++ b/app/services/oauth/create_or_find_qq_account_service.rb @@ -17,8 +17,7 @@ class Oauth::CreateOrFindQqAccountService < ApplicationService new_user = true # 新用户 login = User.generate_login('Q') - nickname = regix_emoji(params.dig('info', 'nickname')) - @user = User.new(login: login, nickname: nickname.force_encoding('UTF-8'), type: 'User', status: User::STATUS_ACTIVE) + @user = User.new(login: login, type: 'User', status: User::STATUS_ACTIVE) end ActiveRecord::Base.transaction do diff --git a/app/services/oauth/create_or_find_wechat_account_service.rb b/app/services/oauth/create_or_find_wechat_account_service.rb index 07afcfe04..148e6c273 100644 --- a/app/services/oauth/create_or_find_wechat_account_service.rb +++ b/app/services/oauth/create_or_find_wechat_account_service.rb @@ -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