作者 李宇航

合并分支 'lyh-server' 到 'master'

Lyh server



查看合并请求 !3032
@@ -68,16 +68,4 @@ class GeoController extends BaseController @@ -68,16 +68,4 @@ class GeoController extends BaseController
68 $data = $this->logic->saveConfig($this->param); 68 $data = $this->logic->saveConfig($this->param);
69 $this->response('success', Code::SUCCESS, $data); 69 $this->response('success', Code::SUCCESS, $data);
70 } 70 }
71 -  
72 -  
73 -  
74 - /**  
75 - * OA后台管理员,保存确认数据  
76 - * 客户可以进行确认, OA后台也可以进行确认,以及修改  
77 - * @param Request $request  
78 - */  
79 - public function saveConfirmData(Request $request)  
80 - {  
81 -  
82 - }  
83 } 71 }
@@ -9,10 +9,8 @@ @@ -9,10 +9,8 @@
9 9
10 namespace App\Http\Logic\Aside\Geo; 10 namespace App\Http\Logic\Aside\Geo;
11 11
12 -use App\Enums\Common\Code;  
13 use App\Http\Logic\Aside\BaseLogic; 12 use App\Http\Logic\Aside\BaseLogic;
14 use App\Models\Geo\GeoConf; 13 use App\Models\Geo\GeoConf;
15 -use App\Models\Geo\GeoQuestion;  
16 use App\Models\Manage\ManageHr; 14 use App\Models\Manage\ManageHr;
17 use App\Models\Project\KeywordPrefix; 15 use App\Models\Project\KeywordPrefix;
18 use App\Models\Project\Project; 16 use App\Models\Project\Project;
@@ -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
@@ -84,7 +84,7 @@ class RouteMap extends Base @@ -84,7 +84,7 @@ class RouteMap extends Base
84 } 84 }
85 $length = strlen($sign); 85 $length = strlen($sign);
86 if($length > $route_len){ 86 if($length > $route_len){
87 - $sign = trim(mb_substr($sign, 0, $route_len, 'UTF-8'),'-'); 87 + $sign = truncate_text($sign,$route_len);
88 } 88 }
89 $i=1;//路由重复时拼接 89 $i=1;//路由重复时拼接
90 $route = $sign.$suffix; 90 $route = $sign.$suffix;