|
...
|
...
|
@@ -361,15 +361,20 @@ class ProjectUpdate extends Command |
|
|
|
'send_time' => $item['post_date'] ?? date('Y-m-d H:i:s'),
|
|
|
|
'sort' => $item['sort'] ?? 0,
|
|
|
|
], ['id' => $id]);
|
|
|
|
}else{
|
|
|
|
//按6.0展示只更新分类
|
|
|
|
$model->edit([
|
|
|
|
'category_id' => $category_id
|
|
|
|
], ['id' => $id]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($six_read) {
|
|
|
|
//关联分类
|
|
|
|
if ($category_arr) {
|
|
|
|
CategoryRelated::saveRelated($id, array_column($category_arr, 'id'));
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($six_read) {
|
|
|
|
//扩展字段
|
|
|
|
if ($item['extend'] ?? []) {
|
|
|
|
foreach (array_reverse($item['extend']) as $ke => $ve) {
|
...
|
...
|
|