This commit is contained in:
aozhiwei 2023-08-10 14:48:27 +08:00
parent ca5dfa1349
commit 9e9486f9f9

View File

@ -806,9 +806,15 @@ class UserController extends BaseAuthedController {
die(); die();
return; return;
} }
User::Update(array( $address = strtolower($rspObj['data']['address']);
'address' => $rspObj['data']['address'] $oldUser = User::findByAddress($address);
)); if ($oldUser) {
} else {
User::Update(array(
'address' => $address
));
}
$propertyChgService = new services\PropertyChgService(); $propertyChgService = new services\PropertyChgService();
$propertyChgService->addUserChg(); $propertyChgService->addUserChg();
$this->_rspData(array( $this->_rspData(array(