作者 李宇航

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

Lyh server



查看合并请求 !1956
@@ -53,7 +53,7 @@ class AiVideoListTask extends Command @@ -53,7 +53,7 @@ class AiVideoListTask extends Command
53 @file_put_contents(storage_path('logs/lyh_error.log'), var_export('执行的项目id->'.$project_id, true) . PHP_EOL, FILE_APPEND); 53 @file_put_contents(storage_path('logs/lyh_error.log'), var_export('执行的项目id->'.$project_id, true) . PHP_EOL, FILE_APPEND);
54 ProjectServer::useProject($project_id); 54 ProjectServer::useProject($project_id);
55 $this->updateBlogList($project_id); 55 $this->updateBlogList($project_id);
56 -// $this->curlDelRoute($project_id); 56 + $this->curlDelRoute($project_id);
57 DB::disconnect('custom_mysql'); 57 DB::disconnect('custom_mysql');
58 return true; 58 return true;
59 } 59 }
@@ -34,7 +34,6 @@ class RemainDay extends Command @@ -34,7 +34,6 @@ class RemainDay extends Command
34 * @var 暂停的项目 34 * @var 暂停的项目
35 */ 35 */
36 protected $ceaseProjectId = [ 36 protected $ceaseProjectId = [
37 - 47,  
38 354, 37 354,
39 378, 38 378,
40 649, 39 649,
@@ -458,7 +458,7 @@ class LyhImportTest extends Command @@ -458,7 +458,7 @@ class LyhImportTest extends Command
458 } 458 }
459 fclose($file_handle); 459 fclose($file_handle);
460 $customContentModel = new CustomModuleContent(); 460 $customContentModel = new CustomModuleContent();
461 - $customCategoryModel = new CustomModuleCategory();; 461 + $customCategoryModel = new CustomModuleCategory();
462 $customExtendContentTModel = new CustomModuleExtentContent(); 462 $customExtendContentTModel = new CustomModuleExtentContent();
463 foreach ($line_of_text as $k => $item){ 463 foreach ($line_of_text as $k => $item){
464 // try { 464 // try {
@@ -13,6 +13,7 @@ use App\Console\Commands\Domain\DomainInfo; @@ -13,6 +13,7 @@ use App\Console\Commands\Domain\DomainInfo;
13 use App\Models\Com\NoticeLog; 13 use App\Models\Com\NoticeLog;
14 use App\Models\Project\AiBlogTask; 14 use App\Models\Project\AiBlogTask;
15 use App\Models\Project\DeployBuild; 15 use App\Models\Project\DeployBuild;
  16 +use App\Models\Project\OnlineCheck;
16 use App\Models\Project\Project; 17 use App\Models\Project\Project;
17 use Illuminate\Console\Command; 18 use Illuminate\Console\Command;
18 use Illuminate\Support\Facades\Artisan; 19 use Illuminate\Support\Facades\Artisan;
@@ -35,14 +36,7 @@ class lyhDemo extends Command @@ -35,14 +36,7 @@ class lyhDemo extends Command
35 protected $description = '更新路由'; 36 protected $description = '更新路由';
36 37
37 public function handle(){ 38 public function handle(){
38 - $projectBuildModel = new DeployBuild();  
39 - $projectList = $projectBuildModel->list(['plan'=>0,'seo_plan'=>1],'project_id');  
40 - foreach ($projectList as $val){  
41 - if(!empty($val['service_duration']) && empty($val['seo_service_duration'])){  
42 - $projectBuildModel->edit(['seo_service_duration'=>$val['service_duration']],['id'=>$val['id']]);  
43 - echo '项目id:'.$val['project_id'].PHP_EOL;  
44 - }  
45 - }  
46 return true; 39 return true;
47 } 40 }
  41 +
48 } 42 }
@@ -183,6 +183,7 @@ class Supervisory extends Command @@ -183,6 +183,7 @@ class Supervisory extends Command
183 $ids = Project::leftJoin('gl_project_deploy_optimize as b', 'gl_project.id', '=', 'b.project_id') 183 $ids = Project::leftJoin('gl_project_deploy_optimize as b', 'gl_project.id', '=', 'b.project_id')
184 ->leftJoin('gl_project_online_check as c', 'gl_project.id', '=', 'c.project_id') 184 ->leftJoin('gl_project_online_check as c', 'gl_project.id', '=', 'c.project_id')
185 ->leftJoin('gl_domain_info as d', 'gl_project.id', '=', 'd.project_id') 185 ->leftJoin('gl_domain_info as d', 'gl_project.id', '=', 'd.project_id')
  186 + ->where('gl_project_deploy_optimize.domain','!=',0)
186 ->where('gl_project.type', Project::TYPE_TWO) 187 ->where('gl_project.type', Project::TYPE_TWO)
187 ->where('gl_project.extend_type', 0) // 是否续费是由extend_type字段控制 188 ->where('gl_project.extend_type', 0) // 是否续费是由extend_type字段控制
188 ->where('gl_project.delete_status', Project::IS_DEL_FALSE) 189 ->where('gl_project.delete_status', Project::IS_DEL_FALSE)
@@ -50,6 +50,7 @@ class AiVideoLogic extends BaseLogic @@ -50,6 +50,7 @@ class AiVideoLogic extends BaseLogic
50 }catch (\Exception $e){ 50 }catch (\Exception $e){
51 $this->fail('保存失败,请联系管理员'); 51 $this->fail('保存失败,请联系管理员');
52 } 52 }
  53 + shell_exec("php artisan save_ai_video_list {$this->user['project_id']} > /dev/null 2>&1 &");
53 return $this->success(); 54 return $this->success();
54 } 55 }
55 56
@@ -93,6 +94,7 @@ class AiVideoLogic extends BaseLogic @@ -93,6 +94,7 @@ class AiVideoLogic extends BaseLogic
93 }catch (\Exception $e){ 94 }catch (\Exception $e){
94 $this->fail('删除失败,请联系管理员'); 95 $this->fail('删除失败,请联系管理员');
95 } 96 }
  97 + shell_exec("php artisan save_ai_video_list {$this->user['project_id']} > /dev/null 2>&1 &");
96 return $this->success(); 98 return $this->success();
97 } 99 }
98 100
@@ -545,8 +545,8 @@ class RankDataLogic extends BaseLogic @@ -545,8 +545,8 @@ class RankDataLogic extends BaseLogic
545 $without_project_ids = []; //不用处理排名的项目 545 $without_project_ids = []; //不用处理排名的项目
546 $without_extension_project_ids = [658]; //是否达标只统计主词的 546 $without_extension_project_ids = [658]; //是否达标只统计主词的
547 $extension_project_ids = [354]; //扩展词也到达标的 547 $extension_project_ids = [354]; //扩展词也到达标的
548 - $compliance_project_ids = [2163,257,823,1750,497,2523,325,156]; //直接达标处理的  
549 - $ceaseProjectId = [47, 354, 378, 649, 1226, 1283, 1703, 1893, 2066, 2250];//暂停的项目 548 + $compliance_project_ids = [2163,257,823,1750,497]; //直接达标处理的
  549 + $ceaseProjectId = [354, 378, 649, 1226, 1283, 1703, 1893, 2066, 2250];//暂停的项目
550 $uptimeProjectId = [1434,1812,276,2414,2974];//按上线时间统计的项目 550 $uptimeProjectId = [1434,1812,276,2414,2974];//按上线时间统计的项目
551 //一个项目多个api_no 551 //一个项目多个api_no
552 $multiple_api_no_project_ids = [ 552 $multiple_api_no_project_ids = [