|
...
|
...
|
@@ -608,6 +608,7 @@ class ProductLogic extends BaseLogic |
|
|
|
$categoryLogic = new CategoryLogic();
|
|
|
|
$category_id = $categoryLogic->importProductCategory($project_id, $data[2]);
|
|
|
|
}
|
|
|
|
echo 'category'.PHP_EOL;
|
|
|
|
|
|
|
|
$keyword_id = '';
|
|
|
|
if($data[3]??''){
|
|
...
|
...
|
@@ -615,6 +616,7 @@ class ProductLogic extends BaseLogic |
|
|
|
$keywordLogic = new KeywordLogic();
|
|
|
|
$keyword_id = $keywordLogic->importProductKeyword($project_id, $data[3]);
|
|
|
|
}
|
|
|
|
echo 'keyword'.PHP_EOL;
|
|
|
|
|
|
|
|
$gallery = [];
|
|
|
|
$thumb = '';
|
|
...
|
...
|
@@ -639,6 +641,7 @@ class ProductLogic extends BaseLogic |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo 'thumb'.PHP_EOL;
|
|
|
|
|
|
|
|
$intro = '';
|
|
|
|
if($data[5]??''){
|
|
...
|
...
|
@@ -662,6 +665,7 @@ class ProductLogic extends BaseLogic |
|
|
|
|
|
|
|
$intro = $data[5];
|
|
|
|
}
|
|
|
|
echo 'intro'.PHP_EOL;
|
|
|
|
|
|
|
|
$content = '';
|
|
|
|
if($data[6]??''){
|
|
...
|
...
|
@@ -685,6 +689,7 @@ class ProductLogic extends BaseLogic |
|
|
|
|
|
|
|
$content = $data[6];
|
|
|
|
}
|
|
|
|
echo 'content'.PHP_EOL;
|
|
|
|
|
|
|
|
//处理seo
|
|
|
|
$seo_title = '';
|
|
...
|
...
|
@@ -701,6 +706,7 @@ class ProductLogic extends BaseLogic |
|
|
|
if($data[10]??''){
|
|
|
|
$seo_description = substr(strip_tags($data[10]),0,200);
|
|
|
|
}
|
|
|
|
echo 'seo'.PHP_EOL;
|
|
|
|
|
|
|
|
$seo_mate = [
|
|
|
|
'title' => $seo_title,
|
|
...
|
...
|
@@ -725,6 +731,7 @@ class ProductLogic extends BaseLogic |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo 'attr'.PHP_EOL;
|
|
|
|
|
|
|
|
//处理描述切换栏
|
|
|
|
$describe = [];
|
|
...
|
...
|
@@ -755,6 +762,7 @@ class ProductLogic extends BaseLogic |
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo 'describe'.PHP_EOL;
|
|
|
|
|
|
|
|
$id = $this->model->addReturnId(
|
|
|
|
[
|
|
...
|
...
|
@@ -773,6 +781,7 @@ class ProductLogic extends BaseLogic |
|
|
|
'status' => Product::STATUS_ON
|
|
|
|
]
|
|
|
|
);
|
|
|
|
echo 'product'.PHP_EOL;
|
|
|
|
|
|
|
|
//更新路由
|
|
|
|
if($route){
|
...
|
...
|
|