正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -61,7 +61,7 @@ DSE1504F,Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positive,150,1.4, | @@ -61,7 +61,7 @@ DSE1504F,Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positive,150,1.4, | ||
| 61 | $array = explode("\n", $data); | 61 | $array = explode("\n", $data); |
| 62 | foreach ($array as $values){ | 62 | foreach ($array as $values){ |
| 63 | $array1 = explode(',',$values); | 63 | $array1 = explode(',',$values); |
| 64 | - $data = [ | 64 | + $contentData = [ |
| 65 | 'name'=>$array1[0], | 65 | 'name'=>$array1[0], |
| 66 | 'route'=>'', | 66 | 'route'=>'', |
| 67 | 'project_id'=>2837, | 67 | 'project_id'=>2837, |
| @@ -69,7 +69,7 @@ DSE1504F,Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positive,150,1.4, | @@ -69,7 +69,7 @@ DSE1504F,Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positive,150,1.4, | ||
| 69 | 'module_id'=>2, | 69 | 'module_id'=>2, |
| 70 | ]; | 70 | ]; |
| 71 | $customModuleContentModel = new CustomModuleContent(); | 71 | $customModuleContentModel = new CustomModuleContent(); |
| 72 | - $contentId = $customModuleContentModel->addReturnId($data); | 72 | + $contentId = $customModuleContentModel->addReturnId($contentData); |
| 73 | $route = RouteMap::setRoute($data['route'],RouteMap::SOURCE_MODULE,$contentId,2837); | 73 | $route = RouteMap::setRoute($data['route'],RouteMap::SOURCE_MODULE,$contentId,2837); |
| 74 | $customModuleContentModel->edit(['route'=>$route],['id'=>$contentId]); | 74 | $customModuleContentModel->edit(['route'=>$route],['id'=>$contentId]); |
| 75 | $pd_extended_field_arr = [ | 75 | $pd_extended_field_arr = [ |
-
请 注册 或 登录 后发表评论