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