Commit 0e18c351 authored by DESKTOP-J74Q997\abc's avatar DESKTOP-J74Q997\abc

修改图片处理逻辑

parent e1df1c81
...@@ -132,8 +132,9 @@ class Drawer ...@@ -132,8 +132,9 @@ class Drawer
{ {
$originUrl = $url; $originUrl = $url;
//如果shopify 去掉版本号 //如果shopify 去掉版本号
if (strpos($url, 'shopify') !== false) { if (strpos($url, 'shopify') !== false && strpos($url, '?v=') !== false) {
$url = substr($url, 0, strpos($url, '?v=')); $url = substr($url, 0, strpos($url, '?v='));
var_dump($url);
} }
$savePath = $this->rootPath . '/download/images/' . ($path ? $path . '/' : $this->savePath); $savePath = $this->rootPath . '/download/images/' . ($path ? $path . '/' : $this->savePath);
create_file_dir($savePath); create_file_dir($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