Loading src/Tools/Drawer.php +2 −1 Original line number Diff line number Diff line Loading @@ -107,6 +107,7 @@ class Drawer */ public function downLoadImgWebpChannel($url, $path = '') { $originUrl = $url; //如果shopify 去掉版本号 if (strpos($url, 'shopify') !== false) { $url = substr($url, 0, strpos($url, '?v=')); Loading @@ -120,7 +121,7 @@ class Drawer $filePath = $savePath . "$filename.$ext"; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 信任任何证书 curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_URL, $originUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); $file = curl_exec($ch); Loading Loading
src/Tools/Drawer.php +2 −1 Original line number Diff line number Diff line Loading @@ -107,6 +107,7 @@ class Drawer */ public function downLoadImgWebpChannel($url, $path = '') { $originUrl = $url; //如果shopify 去掉版本号 if (strpos($url, 'shopify') !== false) { $url = substr($url, 0, strpos($url, '?v=')); Loading @@ -120,7 +121,7 @@ class Drawer $filePath = $savePath . "$filename.$ext"; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 信任任何证书 curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_URL, $originUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); $file = curl_exec($ch); Loading