1,封装http方法 private function http($url, $data = NULL, $json = false) { unset($res,$curl,$errorno); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST