|
...
|
...
|
@@ -1655,10 +1655,12 @@ class LyhImportTest extends Command |
|
|
|
}
|
|
|
|
]';
|
|
|
|
$data = json_decode($str,true);
|
|
|
|
dd($data);
|
|
|
|
$customContentModel = new CustomModuleContent();
|
|
|
|
$customExtendContentTModel = new CustomModuleExtentContent();
|
|
|
|
foreach ($data as $item){
|
|
|
|
$contentId = 1;
|
|
|
|
$contentId = $customContentModel->addReturnId(['name'=>$item['name'],'image'=>$item['image'],'release_at'=>$item['release_at']]);
|
|
|
|
$route = RouteMap::setRoute($contentId, RouteMap::SOURCE_MODULE, $contentId, $project_id);
|
|
|
|
$customContentModel->edit(['route'=>$route],['id'=>$contentId]);
|
|
|
|
$saveData = [
|
|
|
|
['key'=>'pd_extended_field_1', 'type'=>4, 'values'=>$item['href'], 'content_id'=>$contentId, 'project_id'=>$project_id, 'module_id'=>5, 'created_at'=>date('Y-m-d H:i:s'), 'updated_at'=>date('Y-m-d H:i:s')],
|
|
|
|
];
|
...
|
...
|
|