|
@@ -696,9 +696,7 @@ class ProductLogic extends BaseLogic |
|
@@ -696,9 +696,7 @@ class ProductLogic extends BaseLogic |
|
696
|
}else{
|
696
|
}else{
|
|
697
|
$product = $this->model->read(['title' => $data[0]]);
|
697
|
$product = $this->model->read(['title' => $data[0]]);
|
|
698
|
}
|
698
|
}
|
|
699
|
-
|
|
|
|
700
|
if (!$product) {
|
699
|
if (!$product) {
|
|
701
|
-
|
|
|
|
702
|
$category_id = '';
|
700
|
$category_id = '';
|
|
703
|
$category_arr = [];
|
701
|
$category_arr = [];
|
|
704
|
if ($data[2]??'') {
|
702
|
if ($data[2]??'') {
|
|
@@ -817,9 +815,9 @@ class ProductLogic extends BaseLogic |
|
@@ -817,9 +815,9 @@ class ProductLogic extends BaseLogic |
|
817
|
$seo_description = substr(strip_tags($data[10]),0,200);
|
815
|
$seo_description = substr(strip_tags($data[10]),0,200);
|
|
818
|
}
|
816
|
}
|
|
819
|
$seo_mate = [
|
817
|
$seo_mate = [
|
|
820
|
- 'title' => $seo_title,
|
|
|
|
821
|
- 'keyword' => $seo_keywords,
|
|
|
|
822
|
- 'description' => $seo_description
|
818
|
+ 'title' => $seo_title ?? '',
|
|
|
|
819
|
+ 'keyword' => $seo_keywords ?? '',
|
|
|
|
820
|
+ 'description' => $seo_description ?? ''
|
|
823
|
];
|
821
|
];
|
|
824
|
//处理参数
|
822
|
//处理参数
|
|
825
|
$attrs = [];
|
823
|
$attrs = [];
|
|
@@ -877,7 +875,7 @@ class ProductLogic extends BaseLogic |
|
@@ -877,7 +875,7 @@ class ProductLogic extends BaseLogic |
|
877
|
'intro' => $intro,
|
875
|
'intro' => $intro,
|
|
878
|
'content' => $content,
|
876
|
'content' => $content,
|
|
879
|
'describe' => Arr::a2s($describe),
|
877
|
'describe' => Arr::a2s($describe),
|
|
880
|
- 'seo_mate' => Arr::a2s($seo_mate),
|
878
|
+// 'seo_mate' => Arr::a2s($seo_mate ?? []),
|
|
881
|
'created_uid' => $user_id,
|
879
|
'created_uid' => $user_id,
|
|
882
|
'status' => Product::STATUS_ON
|
880
|
'status' => Product::STATUS_ON
|
|
883
|
]
|
881
|
]
|