作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !1444
... ... @@ -337,6 +337,8 @@ class ProjectUpdate extends Command
}
//名称去掉特殊符号
$item['ttile'] = $this->special2str($item['ttile'] ?? '');
//短描述处理换行
$intro = str_replace("\r\n", "<br>", $item['short_description'] ?? '');
//详情
$content = $item['content'] ?? '';
try {
... ... @@ -345,7 +347,7 @@ class ProjectUpdate extends Command
$id = $model->insertGetId([
'project_id' => $project_id,
'title' => $item['ttile'],
'intro' => $item['short_description'] ?? '',
'intro' => $intro,
'content' => $content,
'category_id' => $category_id,
'keyword_id' => $keyword_id,
... ... @@ -391,7 +393,7 @@ class ProjectUpdate extends Command
//按5.0展示才需要更新数据
$model->edit([
'title' => $item['ttile'],
'intro' => $item['short_description'] ?? '',
'intro' => $intro,
'content' => $content,
'category_id' => $category_id,
'keyword_id' => $keyword_id,
... ...