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();
return;
}
User::Update(array(
'address' => $rspObj['data']['address']
));
$address = strtolower($rspObj['data']['address']);
$oldUser = User::findByAddress($address);
if ($oldUser) {
} else {
User::Update(array(
'address' => $address
));
}
$propertyChgService = new services\PropertyChgService();
$propertyChgService->addUserChg();
$this->_rspData(array(