|
|
|
@ -391,7 +391,7 @@ class Collector extends Command |
|
|
|
//从数据中搜索图片并下载
|
|
|
|
private function search_img(&$data) |
|
|
|
{ |
|
|
|
$img_host = 'https://yytx.eugyl.com/storage/'; |
|
|
|
$img_host = PHP_OS == 'WINNT' ? 'https://yytx.eugyl.com/storage/' : env('APP_URL') . '/storage/'; |
|
|
|
//保存产品图片集
|
|
|
|
if (!empty($data['pictures']) && is_array($data['pictures'])) { |
|
|
|
foreach ($data['pictures'] as &$url) { |
|
|
|
|