作者 lyh

变更数据

... ... @@ -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);
}
... ...
... ... @@ -84,7 +84,7 @@ class RouteMap extends Base
}
$length = strlen($sign);
if($length > $route_len){
$sign = trim(mb_substr($sign, 0, $route_len, 'UTF-8'),'-');
$sign = truncate_text($sign,$route_len);
}
$i=1;//路由重复时拼接
$route = $sign.$suffix;
... ...