时间:2021-07-01 10:21:17 帮助过:118人阅读
function getMobileInfo($mobile) { $http = new HttpClient (); $response = $http->get ( 'http://appyun.sinaapp.com/index.php?app=mobile&controller=index&action=api&outfmt=json&mobile='.$mobile ); if ($response->getHttpCode () == '200') { $result = json_decode($response->getBody(),true); return $result; } return false; }