|
...
|
...
|
@@ -61,7 +61,7 @@ DSE1504F,Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positive,150,1.4, |
|
|
|
$array = explode("\n", $data);
|
|
|
|
foreach ($array as $values){
|
|
|
|
$array1 = explode(',',$values);
|
|
|
|
$data = [
|
|
|
|
$contentData = [
|
|
|
|
'name'=>$array1[0],
|
|
|
|
'route'=>'',
|
|
|
|
'project_id'=>2837,
|
|
...
|
...
|
@@ -69,7 +69,7 @@ DSE1504F,Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positive,150,1.4, |
|
|
|
'module_id'=>2,
|
|
|
|
];
|
|
|
|
$customModuleContentModel = new CustomModuleContent();
|
|
|
|
$contentId = $customModuleContentModel->addReturnId($data);
|
|
|
|
$contentId = $customModuleContentModel->addReturnId($contentData);
|
|
|
|
$route = RouteMap::setRoute($data['route'],RouteMap::SOURCE_MODULE,$contentId,2837);
|
|
|
|
$customModuleContentModel->edit(['route'=>$route],['id'=>$contentId]);
|
|
|
|
$pd_extended_field_arr = [
|
...
|
...
|
|