|
@@ -12,6 +12,7 @@ namespace App\Http\Controllers\Bside; |
|
@@ -12,6 +12,7 @@ namespace App\Http\Controllers\Bside; |
|
12
|
use App\Enums\Common\Code;
|
12
|
use App\Enums\Common\Code;
|
|
13
|
use App\Http\Logic\Bside\News\NewsLogic;
|
13
|
use App\Http\Logic\Bside\News\NewsLogic;
|
|
14
|
use App\Models\Channel\Channel;
|
14
|
use App\Models\Channel\Channel;
|
|
|
|
15
|
+use App\Models\CustomModule\CustomModuleCategory;
|
|
15
|
use App\Models\CustomModule\CustomModuleContent;
|
16
|
use App\Models\CustomModule\CustomModuleContent;
|
|
16
|
use App\Models\CustomModule\CustomModuleExtentContent;
|
17
|
use App\Models\CustomModule\CustomModuleExtentContent;
|
|
17
|
use App\Models\Domain\DomainInfo;
|
18
|
use App\Models\Domain\DomainInfo;
|
|
@@ -79,6 +80,11 @@ DSE1504F,Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positive,150,1.4, |
|
@@ -79,6 +80,11 @@ DSE1504F,Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positive,150,1.4, |
|
79
|
'operator_id'=>6393,
|
80
|
'operator_id'=>6393,
|
|
80
|
'module_id'=>2,
|
81
|
'module_id'=>2,
|
|
81
|
];
|
82
|
];
|
|
|
|
83
|
+ $customModuleCategoryModel = new CustomModuleCategory();
|
|
|
|
84
|
+ $catInfo = $customModuleCategoryModel->read(['name'=>$array1[1]]);
|
|
|
|
85
|
+ if($catInfo !== false){
|
|
|
|
86
|
+ $contentData['category_id'] = $catInfo['id'];
|
|
|
|
87
|
+ }
|
|
82
|
$customModuleContentModel = new CustomModuleContent();
|
88
|
$customModuleContentModel = new CustomModuleContent();
|
|
83
|
$contentId = $customModuleContentModel->addReturnId($contentData);
|
89
|
$contentId = $customModuleContentModel->addReturnId($contentData);
|
|
84
|
$route = RouteMap::setRoute($array1[0],RouteMap::SOURCE_MODULE,$contentId,2837);
|
90
|
$route = RouteMap::setRoute($array1[0],RouteMap::SOURCE_MODULE,$contentId,2837);
|