|
...
|
...
|
@@ -696,9 +696,7 @@ class ProductLogic extends BaseLogic |
|
|
|
}else{
|
|
|
|
$product = $this->model->read(['title' => $data[0]]);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!$product) {
|
|
|
|
|
|
|
|
$category_id = '';
|
|
|
|
$category_arr = [];
|
|
|
|
if ($data[2]??'') {
|
|
...
|
...
|
@@ -817,9 +815,9 @@ class ProductLogic extends BaseLogic |
|
|
|
$seo_description = substr(strip_tags($data[10]),0,200);
|
|
|
|
}
|
|
|
|
$seo_mate = [
|
|
|
|
'title' => $seo_title,
|
|
|
|
'keyword' => $seo_keywords,
|
|
|
|
'description' => $seo_description
|
|
|
|
'title' => $seo_title ?? '',
|
|
|
|
'keyword' => $seo_keywords ?? '',
|
|
|
|
'description' => $seo_description ?? ''
|
|
|
|
];
|
|
|
|
//处理参数
|
|
|
|
$attrs = [];
|
|
...
|
...
|
@@ -877,7 +875,7 @@ class ProductLogic extends BaseLogic |
|
|
|
'intro' => $intro,
|
|
|
|
'content' => $content,
|
|
|
|
'describe' => Arr::a2s($describe),
|
|
|
|
'seo_mate' => Arr::a2s($seo_mate),
|
|
|
|
'seo_mate' => Arr::a2s($seo_mate ?? []),
|
|
|
|
'created_uid' => $user_id,
|
|
|
|
'status' => Product::STATUS_ON
|
|
|
|
]
|
...
|
...
|
|