From 08721bf68da97c7bef279ec98746e900b2f5e663 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Mon, 3 Jul 2023 13:23:01 +0800 Subject: [PATCH] 1 --- webapp/controller/UserController.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 7a0100e5..bfe7937a 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -796,6 +796,14 @@ class UserController extends BaseAuthedController { } error_log($response); $rspObj = json_decode($response, true); + if (!$rspObj['data']['address']){ + User::Update(array( + 'address' => null + )); + myself()->_rspOk(); + die(); + return; + } User::Update(array( 'address' => $rspObj['data']['address'] ));