作者 李宇航

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

Lyh server



查看合并请求 !1512
@@ -54,7 +54,7 @@ class LyhImportTest extends Command @@ -54,7 +54,7 @@ class LyhImportTest extends Command
54 public function handle(){ 54 public function handle(){
55 ProjectServer::useProject(3283); 55 ProjectServer::useProject(3283);
56 echo date('Y-m-d H:i:s') . 'start' . PHP_EOL; 56 echo date('Y-m-d H:i:s') . 'start' . PHP_EOL;
57 - $this->importProduct('https://ecdn6.globalso.com/upload/p/3283/file/2025-03/2-1.csv',3283); 57 +// $this->importProduct('https://ecdn6.globalso.com/upload/p/3283/file/2025-03/2-1.csv',3283);
58 DB::disconnect('custom_mysql'); 58 DB::disconnect('custom_mysql');
59 echo date('Y-m-d H:i:s') . 'end' . PHP_EOL; 59 echo date('Y-m-d H:i:s') . 'end' . PHP_EOL;
60 } 60 }
@@ -66,10 +66,11 @@ class UpdateRoute extends Command @@ -66,10 +66,11 @@ class UpdateRoute extends Command
66 foreach ($lists as $v){ 66 foreach ($lists as $v){
67 echo date('Y-m-d H:i:s') . '执行项目的project_id:'.$v['id'] . PHP_EOL; 67 echo date('Y-m-d H:i:s') . '执行项目的project_id:'.$v['id'] . PHP_EOL;
68 ProjectServer::useProject($v['id']); 68 ProjectServer::useProject($v['id']);
69 - $this->updateSeo($v['id']); 69 + $this->updateSeo();
70 DB::disconnect('custom_mysql'); 70 DB::disconnect('custom_mysql');
71 } 71 }
72 72
  73 +
73 // $this->updateProjectOp(); 74 // $this->updateProjectOp();
74 // $projectModel = new Project(); 75 // $projectModel = new Project();
75 // $lists = $projectModel->list(['delete_status'=>0],'id',['id']); 76 // $lists = $projectModel->list(['delete_status'=>0],'id',['id']);
@@ -526,22 +527,9 @@ class UpdateRoute extends Command @@ -526,22 +527,9 @@ class UpdateRoute extends Command
526 * @method :post 527 * @method :post
527 * @time :2025/3/14 14:39 528 * @time :2025/3/14 14:39
528 */ 529 */
529 - public function updateSeo($project_id){  
530 - $seoModel = new WebSettingSeo();  
531 - $seo_info = $seoModel->read(['project_id'=>$project_id]);  
532 - if($seo_info !== false){  
533 - $prefix = [];  
534 - $suffix = [];  
535 - if(!empty($seo_info['product_cate_prefix'])){  
536 - $prefix[] = ['val'=>[$seo_info['product_cate_prefix']],'level'=>1];  
537 - }  
538 - if(!empty($seo_info['product_cate_suffix'])){  
539 - $suffix[] = ['val'=>[$seo_info['product_cate_suffix']],'level'=>1];  
540 - }  
541 - if(!empty($prefix) && !empty($suffix)){  
542 - $seoModel->edit(['product_category_prefix'=>json_encode($prefix,true),'product_category_suffix'=>json_encode($suffix,true)],['project_id'=>$project_id]);  
543 - }  
544 - } 530 + public function updateSeo(){
  531 + $contentModel = new CustomModuleContent();
  532 + $contentModel->edit(['seo_title'=>''],['id'=>['!=',0]]);
545 return true; 533 return true;
546 } 534 }
547 } 535 }
@@ -23,11 +23,11 @@ class DingService @@ -23,11 +23,11 @@ class DingService
23 23
24 24
25 /** 25 /**
26 - * @notes: 发送钉钉消息 同样的消息 1分钟内不重复  
27 - * @param array $body  
28 - * @return int|mixed  
29 - * @author:wlj  
30 - * @date: 2022/8/10 15:31 26 + * @remark :钉钉发送错误信息
  27 + * @name :handle
  28 + * @author :lyh
  29 + * @method :post
  30 + * @time :2025/3/19 18:03
31 */ 31 */
32 public function handle(array $body) 32 public function handle(array $body)
33 { 33 {