0) { return ['IP所在地'=>$arr['data'][0]['location']]; }else{ throw new Exception('接口查询失败,返回结果错误'); } } }