$url = "https://test.allture.vip/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=goods.qjgm.jifen&mobile=".$integral['mobile']; $method ="GET"; $curl = curl_init(); curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_FAILONERROR, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_ENCODING, "gzip"); $ret = curl_exec($curl);