Commit 8768b234 authored by fuyunnan's avatar fuyunnan

去除shopify的版本号 模糊匹配直接加关键字

parent 34eebd2e
...@@ -108,7 +108,7 @@ class Drawer ...@@ -108,7 +108,7 @@ class Drawer
public function downLoadImgWebpChannel($url, $path = '') public function downLoadImgWebpChannel($url, $path = '')
{ {
//如果shopify 去掉版本号 //如果shopify 去掉版本号
if (strpos($url, 'cdn.shopify.com') !== false) { if (strpos($url, 'shopify') !== false) {
$url = substr($url, 0, strpos($url, '?v=')); $url = substr($url, 0, strpos($url, '?v='));
} }
$savePath = $this->rootPath . '/download/images/' . ($path ? $path . '/' : $this->savePath); $savePath = $this->rootPath . '/download/images/' . ($path ? $path . '/' : $this->savePath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment