作者 刘锟

upload_remote

@@ -410,6 +410,7 @@ class ProductLogic extends BaseLogic @@ -410,6 +410,7 @@ class ProductLogic extends BaseLogic
410 } 410 }
411 } 411 }
412 412
  413 + //处理seo
413 $seo_mate = [ 414 $seo_mate = [
414 'title' => $data[8]??'', 415 'title' => $data[8]??'',
415 'keyword' => $data[9]??'', 416 'keyword' => $data[9]??'',
@@ -423,8 +424,8 @@ class ProductLogic extends BaseLogic @@ -423,8 +424,8 @@ class ProductLogic extends BaseLogic
423 'project_id' => $project_id, 424 'project_id' => $project_id,
424 'title' => $data[0], 425 'title' => $data[0],
425 'thumb' => Arr::a2s($gallery[0] ?? ''), 426 'thumb' => Arr::a2s($gallery[0] ?? ''),
426 - 'gallery' => Arr::a2s($gallery),  
427 - 'attrs' => $data[4]??'', 427 + 'gallery' => Arr::a2s($gallery ?: ''),
  428 + 'attrs' => $data[4] ? $data[4] : Arr::a2s(''),
428 'category_id' => $category_id, 429 'category_id' => $category_id,
429 'keyword_id' => $keyword_id, 430 'keyword_id' => $keyword_id,
430 'intro' => $data[5] ?? '', 431 'intro' => $data[5] ?? '',