作者 刘锟

update

@@ -292,19 +292,6 @@ class ProjectUpdate extends Command @@ -292,19 +292,6 @@ class ProjectUpdate extends Command
292 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL; 292 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL;
293 continue; 293 continue;
294 } 294 }
295 - } else {  
296 - $gallery = [];  
297 - if ($item['images'] ?? []) {  
298 - foreach ($item['images'] as $k_img => $img) {  
299 - $gallery[] = ['alt' => '', 'url' => $this->source_download($img, $project_id, $domain_arr['host'], $web_url_domain, $home_url)];  
300 - }  
301 - }  
302 -  
303 - $edit = [  
304 - 'thumb' => isset($gallery[0]) ? Arr::a2s($gallery[0]) : '',  
305 - 'gallery' => Arr::a2s($gallery)  
306 - ];  
307 - $model->edit($edit, ['id' => $product['id']]);  
308 } 295 }
309 } 296 }
310 } 297 }