From 627a3965d0a297306207aac0e48ec73097021f32 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 10 Aug 2023 15:12:06 +0800 Subject: [PATCH] 1 --- webapp/controller/UserController.class.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 0a7ed47f..8e1538d4 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -810,22 +810,11 @@ class UserController extends BaseAuthedController { $oldUser = User::findByAddress($address); if ($oldUser) { if ($oldUser['account_id'] != myself()->_getAccountId()) { - SqlHelper::upsert - ($this->_getSelfMysql(), - 't_user', - array( - 'account_id' => $this->_getAccountId() - ), - array( - ), - $fields - ); } - } else { - User::Update(array( - 'address' => $address - )); } + User::Update(array( + 'address' => $address + )); $propertyChgService = new services\PropertyChgService(); $propertyChgService->addUserChg(); $this->_rspData(array(