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