curl
这里我整合了curl方法,来实现get和post传参调用远程接口,获取接口数据的方法,具体方法如下:
/**
* curl
*/
public static function httpRequest($url, $format = 'get', $data = null){
//设置头信息
$header