This commit is contained in:
hujiabin 2023-07-03 13:23:01 +08:00
parent 6856da52a3
commit 08721bf68d

View File

@ -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']
));