|
...
|
...
|
@@ -225,9 +225,7 @@ class NewsLogic extends BaseLogic |
|
|
|
if(isset($param['related_product_id'])){
|
|
|
|
$param['related_product_id'] = implode(',',$param['related_product_id']);
|
|
|
|
}
|
|
|
|
if(!isset($param['seo_title']) || empty($param['seo_title'])){
|
|
|
|
$param['seo_title'] = truncate_text($param['name'],70);
|
|
|
|
}
|
|
|
|
$param['seo_title'] = truncate_text($param['seo_title'] ?? $param['name'],70);
|
|
|
|
return $this->success($param);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|