This commit is contained in:
aozhiwei 2023-08-10 16:19:27 +08:00
parent b599b999a5
commit ae117d80aa

View File

@ -810,6 +810,13 @@ class UserController extends BaseAuthedController {
$oldUser = User::findByAddress($address);
if ($oldUser) {
if ($oldUser['account_id'] != myself()->_getAccountId()) {
if (!phpcommon\isSameSeriesAccount(
$oldUser['account_id'],
myself()->_getAccountId()
)) {
myself()->_rspErr(1, 'is not SameSeriesAccount');
return;
}
User::updateOther(
$oldUser['account_id'],
array(