正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -92,7 +92,7 @@ DSE1504F,Rectifier/Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positiv | @@ -92,7 +92,7 @@ DSE1504F,Rectifier/Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positiv | ||
| 92 | ]; | 92 | ]; |
| 93 | $customModuleCategoryModel = new CustomModuleCategory(); | 93 | $customModuleCategoryModel = new CustomModuleCategory(); |
| 94 | if(!empty($array1[1])){ | 94 | if(!empty($array1[1])){ |
| 95 | - $cate_arr = explode('/',$array1); | 95 | + $cate_arr = explode('/',$array1[1]); |
| 96 | foreach ($cate_arr as $cateV){ | 96 | foreach ($cate_arr as $cateV){ |
| 97 | $catInfo = $customModuleCategoryModel->read(['name'=>$cateV]); | 97 | $catInfo = $customModuleCategoryModel->read(['name'=>$cateV]); |
| 98 | if($catInfo !== false){ | 98 | if($catInfo !== false){ |
| @@ -101,7 +101,7 @@ DSE1504F,Rectifier/Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positiv | @@ -101,7 +101,7 @@ DSE1504F,Rectifier/Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positiv | ||
| 101 | } | 101 | } |
| 102 | $contentData['category_id'] = $contentData['category_id'].','; | 102 | $contentData['category_id'] = $contentData['category_id'].','; |
| 103 | }else{ | 103 | }else{ |
| 104 | - $catInfo = $customModuleCategoryModel->read(['name'=>$array1]); | 104 | + $catInfo = $customModuleCategoryModel->read(['name'=>$array1[1]]); |
| 105 | if($catInfo !== false){ | 105 | if($catInfo !== false){ |
| 106 | $contentData['category_id'] = ','.$catInfo['id'].','; | 106 | $contentData['category_id'] = ','.$catInfo['id'].','; |
| 107 | } | 107 | } |
-
请 注册 或 登录 后发表评论