|
...
|
...
|
@@ -179,6 +179,9 @@ class AiBlogLogic extends BaseLogic |
|
|
|
'title'=>$param['new_title'], 'thumb'=>$param['image'], 'foreword'=>$param['description'] ?? '',
|
|
|
|
'author_id'=>$this->param['author_id'], 'url'=>$param['route'],
|
|
|
|
];
|
|
|
|
if(!isset($param['description']) || empty($param['description'])){
|
|
|
|
$param['description'] = truncate_text($param['text']);
|
|
|
|
}
|
|
|
|
if(isset($param['id']) && !empty($param['id'])){
|
|
|
|
$id = $param['id'];
|
|
|
|
$data['task_id'] = $param['task_id'];
|
|
...
|
...
|
@@ -196,9 +199,6 @@ class AiBlogLogic extends BaseLogic |
|
|
|
$text1 = Common::deal_str($text1);
|
|
|
|
$param['seo_keyword'] = $text1;
|
|
|
|
}
|
|
|
|
if(!isset($param['description']) || empty($param['description'])){
|
|
|
|
$param['description'] = truncate_text($param['text']);
|
|
|
|
}
|
|
|
|
$param['route'] = RouteMap::setRoute($param['route'], RouteMap::SOURCE_AI_BLOG, $id, $this->user['project_id']);
|
|
|
|
$this->model->edit($param,['id'=>$param['id']]);
|
|
|
|
}else{
|
...
|
...
|
|