From ebc7c5a7d962acd308d17037320af7a8daa08ebd Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 15 Aug 2023 16:20:11 +0800 Subject: [PATCH] 1 --- webapp/controller/ToolsController.class.php | 25 +++++++++++++++++++++ webapp/controller/UserController.class.php | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/webapp/controller/ToolsController.class.php b/webapp/controller/ToolsController.class.php index 77c7b1d3..5f10bf69 100644 --- a/webapp/controller/ToolsController.class.php +++ b/webapp/controller/ToolsController.class.php @@ -1,6 +1,9 @@ 'safdf' + ); + if (empty($obj['b'])) { + echo '22222'; + } + //echo $obj['b']; + SqlHelper::update( + myself()->_getMysql(''), + 't_user', + array( + 'account_id' => getReqVal('account_id', '') + ), + array( + 'address' => null + ) + ); + error_log(json_encode($_REQUEST)); + echo 1434; + } + return; $orderInfo = null; { $params = array( diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index f82be0a7..5995fa70 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -812,7 +812,7 @@ class UserController extends BaseAuthedController { } error_log($response); $rspObj = json_decode($response, true); - if (!$rspObj['data']['address']){ + if (empty($rspObj['data']['address'])) { User::Update(array( 'address' => null ));