|
...
|
...
|
@@ -13,6 +13,7 @@ use App\Models\Com\UpdateOldInfo; |
|
|
|
use App\Models\News\News;
|
|
|
|
use App\Models\News\NewsCategory;
|
|
|
|
use App\Models\Product\Category;
|
|
|
|
use App\Models\Product\CategoryRelated;
|
|
|
|
use App\Models\Product\Extend;
|
|
|
|
use App\Models\Product\ExtendInfo;
|
|
|
|
use App\Models\Product\Keyword;
|
|
...
|
...
|
@@ -290,7 +291,7 @@ class ProjectUpdate extends Command |
|
|
|
'route' => $route
|
|
|
|
]);
|
|
|
|
$this->set_map($route, RouteMap::SOURCE_PRODUCT, $id, $project_id);
|
|
|
|
|
|
|
|
CategoryRelated::saveRelated($id, array_column($category_arr, 'id'));
|
|
|
|
CollectTask::_insert($item['url'], $project_id, RouteMap::SOURCE_PRODUCT, $id, $link_type, $language_list, $page_list);
|
|
|
|
} else {
|
|
|
|
$id = $product['id'];
|
|
...
|
...
|
@@ -308,6 +309,7 @@ class ProjectUpdate extends Command |
|
|
|
]),
|
|
|
|
'sort' => $item['sort'] ?? 0,
|
|
|
|
], ['id' => $id]);
|
|
|
|
CategoryRelated::saveRelated($id, array_column($category_arr, 'id'));
|
|
|
|
}
|
|
|
|
|
|
|
|
//扩展字段
|
...
|
...
|
|