From 15f446afd2e540ec7eaf1455458ce07a5042d882 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 8 Jun 2023 13:19:57 +0800 Subject: [PATCH] 1 --- webapp/controller/UserController.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index fb9687ba..55451d5a 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -835,9 +835,13 @@ class UserController extends BaseAuthedController { error_log($response); $rspObj = json_decode($response, true); User::Update(array( - 'address' => $rspObj['address'] + 'address' => $rspObj['data']['address'] + )); + $propertyChgService = new services\PropertyChgService(); + $propertyChgService->addUserChg(); + $this->_rspData(array( + 'property_chg' => $propertyChgService->toDto(), )); - $this->_rspOk(); } private function dampingElo($userInfo){