作者 lyh
... ... @@ -337,6 +337,7 @@ class ProjectUpdate extends Command
}
//名称去掉特殊符号
$item['ttile'] = $this->special2str($item['ttile'] ?? '');
//详情
$content = $item['content'] ?? '';
try {
$product = $model->read(['route' => $route], ['id', 'six_read']);
... ... @@ -406,7 +407,6 @@ class ProjectUpdate extends Command
'sort' => $item['sort'] ?? 0,
'files' => $files,
], ['id' => $id]);
}
if(!empty($content)){
$detailModel = new Detail();
$detailModel->del(['product_id'=>$id,'column_id'=>1]);
... ... @@ -423,6 +423,7 @@ class ProjectUpdate extends Command
$detailModel->insert($data_s);
}
}
}
if ($six_read) {
//关联分类
CategoryRelated::saveRelated($id, array_column($category_arr, 'id'));
... ...