|
...
|
...
|
@@ -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,21 +407,21 @@ 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]);
|
|
|
|
$data_s = [
|
|
|
|
'product_id'=>$id,
|
|
|
|
'column_id'=>1,
|
|
|
|
'text_type'=>1,
|
|
|
|
'title'=>'product detail',
|
|
|
|
'sort'=>1,
|
|
|
|
'content'=>json_encode(['content'=>$content ?? ''],JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
|
|
|
|
'created_at'=>date('Y-m-d H:i:s'),
|
|
|
|
'updated_at'=>date('Y-m-d H:i:s')
|
|
|
|
];
|
|
|
|
$detailModel->insert($data_s);
|
|
|
|
if(!empty($content)){
|
|
|
|
$detailModel = new Detail();
|
|
|
|
$detailModel->del(['product_id'=>$id,'column_id'=>1]);
|
|
|
|
$data_s = [
|
|
|
|
'product_id'=>$id,
|
|
|
|
'column_id'=>1,
|
|
|
|
'text_type'=>1,
|
|
|
|
'title'=>'product detail',
|
|
|
|
'sort'=>1,
|
|
|
|
'content'=>json_encode(['content'=>$content ?? ''],JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
|
|
|
|
'created_at'=>date('Y-m-d H:i:s'),
|
|
|
|
'updated_at'=>date('Y-m-d H:i:s')
|
|
|
|
];
|
|
|
|
$detailModel->insert($data_s);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($six_read) {
|
...
|
...
|
|