This commit is contained in:
aozhiwei 2023-08-10 15:12:06 +08:00
parent 9d39b424cd
commit 627a3965d0

View File

@ -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(