修改compact的错误

This commit is contained in:
sylor_huang@126.com 2020-04-14 18:33:27 +08:00
parent 2578cdec71
commit 72d5c44288
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ class AccountsController < ApplicationController
# 其他平台修改用户的信息,这边同步修改
def remote_update
ActiveRecord::Base.transaction do
user_params = params[:user_params].compact
user_extension_params = params[:user_extension_params].compact
user_params = params[:user_params]
user_extension_params = params[:user_extension_params]
u = User.find_by(login: params[:old_user_login])
user_mail = u.try(:mail)