作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !177
@@ -262,7 +262,9 @@ class ProjectUpdate extends Command @@ -262,7 +262,9 @@ class ProjectUpdate extends Command
262 $gallery = []; 262 $gallery = [];
263 if ($item['images'] ?? []) { 263 if ($item['images'] ?? []) {
264 foreach ($item['images'] as $k_img => $img) { 264 foreach ($item['images'] as $k_img => $img) {
265 - $gallery[] = ['alt' => '这是一张产品图', 'url' => $this->source_download($img, $project_id, $domain_arr['host'], $web_url_domain, $home_url)]; 265 + if (substr($img, -3, 3) != 'tif') {
  266 + $gallery[] = ['alt' => '这是一张产品图', 'url' => $this->source_download($img, $project_id, $domain_arr['host'], $web_url_domain, $home_url)];
  267 + }
266 } 268 }
267 } 269 }
268 //分类 270 //分类
@@ -466,7 +468,7 @@ class ProjectUpdate extends Command @@ -466,7 +468,7 @@ class ProjectUpdate extends Command
466 DB::disconnect('custom_mysql'); 468 DB::disconnect('custom_mysql');
467 469
468 $task->status = UpdateLog::STATUS_COM;//同步完成 470 $task->status = UpdateLog::STATUS_COM;//同步完成
469 - if($is_flush){ 471 + if ($is_flush) {
470 $task->collect_status = UpdateLog::COLLECT_STATUS_UN; 472 $task->collect_status = UpdateLog::COLLECT_STATUS_UN;
471 } 473 }
472 $task->save(); 474 $task->save();