|
...
|
...
|
@@ -1300,15 +1300,14 @@ MBR60L100PT,Rectifier/Schottky Barrier Rectifier,TO-247AD,Common Cathode,100,60, |
|
|
|
$contentId, $project_id);
|
|
|
|
$customContentModel->edit(['route'=>$route],['id'=>$contentId]);
|
|
|
|
if(!empty($array[1])){
|
|
|
|
$categoryId = ',';
|
|
|
|
$cateArr = explode('/',$array[1]);
|
|
|
|
foreach ($cateArr as $cateV){
|
|
|
|
$categoryId = ',';
|
|
|
|
$cateInfo = $customCategoryModel->read(['name'=>$cateV,'module_id'=>2,'project_id'=>$project_id]);
|
|
|
|
if($cateInfo !== false){
|
|
|
|
$categoryId .= $cateInfo['id'].',';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$categoryId = trim($categoryId,',');
|
|
|
|
$customContentModel->edit(['category_id'=>$categoryId],['id'=>$contentId]);
|
|
|
|
}
|
|
|
|
$saveData = [
|
...
|
...
|
|