|
...
|
...
|
@@ -92,7 +92,7 @@ DSE1504F,Rectifier/Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positiv |
|
|
|
];
|
|
|
|
$customModuleCategoryModel = new CustomModuleCategory();
|
|
|
|
if(!empty($array1[1])){
|
|
|
|
$cate_arr = explode('/',$array1);
|
|
|
|
$cate_arr = explode('/',$array1[1]);
|
|
|
|
foreach ($cate_arr as $cateV){
|
|
|
|
$catInfo = $customModuleCategoryModel->read(['name'=>$cateV]);
|
|
|
|
if($catInfo !== false){
|
|
...
|
...
|
@@ -101,7 +101,7 @@ DSE1504F,Rectifier/Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positiv |
|
|
|
}
|
|
|
|
$contentData['category_id'] = $contentData['category_id'].',';
|
|
|
|
}else{
|
|
|
|
$catInfo = $customModuleCategoryModel->read(['name'=>$array1]);
|
|
|
|
$catInfo = $customModuleCategoryModel->read(['name'=>$array1[1]]);
|
|
|
|
if($catInfo !== false){
|
|
|
|
$contentData['category_id'] = ','.$catInfo['id'].',';
|
|
|
|
}
|
...
|
...
|
|