|
...
|
...
|
@@ -273,6 +273,21 @@ class BlogLogic extends BaseLogic |
|
|
|
$img = check_remote_url_down($data[5]) ? CosService::uploadRemote($project_id, 'image_news', $data[5]) : $data[5];
|
|
|
|
}
|
|
|
|
|
|
|
|
$seo_title = '';
|
|
|
|
if($data[6]??''){
|
|
|
|
$seo_title = substr(strip_tags($data[6]),0,70);
|
|
|
|
}
|
|
|
|
|
|
|
|
$seo_keywords = '';
|
|
|
|
if($data[6]??''){
|
|
|
|
$seo_keywords = substr(strip_tags($data[7]),0,255);
|
|
|
|
}
|
|
|
|
|
|
|
|
$seo_description = '';
|
|
|
|
if($data[6]??''){
|
|
|
|
$seo_description = substr(strip_tags($data[8]),0,200);
|
|
|
|
}
|
|
|
|
|
|
|
|
$id = $this->model->addReturnId(
|
|
|
|
[
|
|
|
|
'name' => $data[0],
|
|
...
|
...
|
@@ -280,9 +295,9 @@ class BlogLogic extends BaseLogic |
|
|
|
'text' => $text,
|
|
|
|
'remark' => $data[3] ?? '',
|
|
|
|
'image' => $img,
|
|
|
|
'seo_title' => $data[6] ?? '',
|
|
|
|
'seo_keywords' => $data[7] ?? '',
|
|
|
|
'seo_description' => $data[8] ?? '',
|
|
|
|
'seo_title' => $seo_title,
|
|
|
|
'seo_keywords' => $seo_keywords,
|
|
|
|
'seo_description' => $seo_description,
|
|
|
|
'project_id' => $project_id,
|
|
|
|
'operator_id' => $user_id,
|
|
|
|
'create_id' => $user_id,
|
...
|
...
|
|