1
This commit is contained in:
parent
6856da52a3
commit
08721bf68d
@ -796,6 +796,14 @@ class UserController extends BaseAuthedController {
|
|||||||
}
|
}
|
||||||
error_log($response);
|
error_log($response);
|
||||||
$rspObj = json_decode($response, true);
|
$rspObj = json_decode($response, true);
|
||||||
|
if (!$rspObj['data']['address']){
|
||||||
|
User::Update(array(
|
||||||
|
'address' => null
|
||||||
|
));
|
||||||
|
myself()->_rspOk();
|
||||||
|
die();
|
||||||
|
return;
|
||||||
|
}
|
||||||
User::Update(array(
|
User::Update(array(
|
||||||
'address' => $rspObj['data']['address']
|
'address' => $rspObj['data']['address']
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user