作者 李宇航

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

Lyh server



查看合并请求 !2423
@@ -99,7 +99,7 @@ class GeoQuestionRes extends Command @@ -99,7 +99,7 @@ class GeoQuestionRes extends Command
99 $data = $geo_service->getDeepSeekResult($question); 99 $data = $geo_service->getDeepSeekResult($question);
100 $result = $this->dealDeepSeek($data); 100 $result = $this->dealDeepSeek($data);
101 break; 101 break;
102 - case 'gpt-4o-mini': 102 + case 'openai-not-network':
103 $data = $geo_service->getDeepSeekResult($question,'gpt-4o-mini'); 103 $data = $geo_service->getDeepSeekResult($question,'gpt-4o-mini');
104 $result = $this->dealDeepSeek($data,'gpt-4o-mini'); 104 $result = $this->dealDeepSeek($data,'gpt-4o-mini');
105 break; 105 break;
@@ -151,12 +151,13 @@ class SyncProject extends Command @@ -151,12 +151,13 @@ class SyncProject extends Command
151 'contract' => json_encode($param['files']), 151 'contract' => json_encode($param['files']),
152 'bill' => json_encode($param['images']), 152 'bill' => json_encode($param['images']),
153 ]; 153 ];
154 - if($param['plan_marketing'] == '白帽SEO方案'){  
155 - $data['seo_service_duration'] = $param['years'] ?? 0;  
156 - $data['seo_plan'] = 1;  
157 - }else{  
158 - $data['service_duration'] = $param['years'] ?? 0;  
159 - $data['plan'] = $this->versionData($param['plan_marketing']); 154 + $seoPlan = Project::seoMap();
  155 + if (in_array($param['plan_marketing'], $seoPlan)) {
  156 + $data['deploy_build']['seo_service_duration'] = $param['years'] ?? 0;
  157 + $data['deploy_build']['seo_plan'] = $this->versionSeoData($param['plan_marketing'],$seoPlan);
  158 + } else {
  159 + $data['deploy_build']['service_duration'] = $param['years'] ?? 0;
  160 + $data['deploy_build']['plan'] = $this->versionData($param['plan_marketing']);
160 } 161 }
161 $renewModel = new ProjectRenew(); 162 $renewModel = new ProjectRenew();
162 $rs = $renewModel->add($data); 163 $rs = $renewModel->add($data);
@@ -183,8 +184,7 @@ class SyncProject extends Command @@ -183,8 +184,7 @@ class SyncProject extends Command
183 } 184 }
184 } 185 }
185 186
186 - public function versionSeoData($param){  
187 - $data = Project::seoMap(); 187 + public function versionSeoData($param,$data){
188 $data = array_flip($data); 188 $data = array_flip($data);
189 if(isset($data[$param])){ 189 if(isset($data[$param])){
190 return $data[$param]; 190 return $data[$param];
@@ -240,10 +240,11 @@ class SyncProject extends Command @@ -240,10 +240,11 @@ class SyncProject extends Command
240 'bill'=>$param['images'] 240 'bill'=>$param['images']
241 ], 241 ],
242 ]; 242 ];
243 - if($param['plan_marketing'] == '白帽SEO方案'){ 243 + $seoPlan = Project::seoMap();
  244 + if (in_array($param['plan_marketing'], $seoPlan)) {
244 $data['deploy_build']['seo_service_duration'] = $param['years'] ?? 0; 245 $data['deploy_build']['seo_service_duration'] = $param['years'] ?? 0;
245 - $data['deploy_build']['seo_plan'] = $this->versionSeoData($param['plan_marketing']);  
246 - }else{ 246 + $data['deploy_build']['seo_plan'] = $this->versionSeoData($param['plan_marketing'],$seoPlan);
  247 + } else {
247 $data['deploy_build']['service_duration'] = $param['years'] ?? 0; 248 $data['deploy_build']['service_duration'] = $param['years'] ?? 0;
248 $data['deploy_build']['plan'] = $this->versionData($param['plan_marketing']); 249 $data['deploy_build']['plan'] = $this->versionData($param['plan_marketing']);
249 } 250 }
@@ -117,21 +117,4 @@ class GeoQuestionResController extends BaseController @@ -117,21 +117,4 @@ class GeoQuestionResController extends BaseController
117 $data = $this->logic->getSearchDate(); 117 $data = $this->logic->getSearchDate();
118 $this->response('success',Code::SUCCESS,$data); 118 $this->response('success',Code::SUCCESS,$data);
119 } 119 }
120 -  
121 - /**  
122 - * @remark :获取搜索列表  
123 - * @name :getSearchList  
124 - * @author :lyh  
125 - * @method :post  
126 - * @time :2025/7/21 16:47  
127 - */  
128 - public function getSearchList(){  
129 - $this->request->validate([  
130 - 'created_at'=>'required',  
131 - ],[  
132 - 'created_at.required' => 'created_at不能为空',  
133 - ]);  
134 - $data = $this->logic->getSearchList($this->map,$this->page,$this->row);  
135 - $this->response('success',Code::SUCCESS,$data);  
136 - }  
137 } 120 }
@@ -652,7 +652,10 @@ class ProductController extends BaseController @@ -652,7 +652,10 @@ class ProductController extends BaseController
652 } 652 }
653 if(isset($this->map['title']) && !empty($this->map['title'])){ 653 if(isset($this->map['title']) && !empty($this->map['title'])){
654 $this->map['title'] = str_replace('+',' ',$this->map['title']); 654 $this->map['title'] = str_replace('+',' ',$this->map['title']);
655 - $query = $query->where('title','like','%'.$this->map['title'].'%'); 655 + $query->where(function ($subQuery) {
  656 + $subQuery->where('title','like','%'.$this->map['title'].'%')
  657 + ->orwhere('route','like','%'.$this->map['title'].'%');
  658 + });
656 } 659 }
657 if(isset($this->map['keyword_title']) && !empty($this->map['keyword_title'])){ 660 if(isset($this->map['keyword_title']) && !empty($this->map['keyword_title'])){
658 $keywordModel = new Keyword(); 661 $keywordModel = new Keyword();