Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
10 个修改的文件
包含
14 行增加
和
20 行删除
| @@ -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 | } |
| @@ -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,8 +183,8 @@ class Supervisory extends Command | @@ -183,8 +183,8 @@ 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.type', Project::TYPE_TWO) | ||
| 187 | - ->whereIn('gl_project.type',[Project::TYPE_TWO,Project::TYPE_THREE]) | 186 | + ->where('gl_project_deploy_optimize.domain','!=',0) |
| 187 | + ->where('gl_project.type', Project::TYPE_TWO) | ||
| 188 | ->where('gl_project.extend_type', 0) // 是否续费是由extend_type字段控制 | 188 | ->where('gl_project.extend_type', 0) // 是否续费是由extend_type字段控制 |
| 189 | ->where('gl_project.delete_status', Project::IS_DEL_FALSE) | 189 | ->where('gl_project.delete_status', Project::IS_DEL_FALSE) |
| 190 | ->where(function ($subQuery) { | 190 | ->where(function ($subQuery) { |
| @@ -285,7 +285,7 @@ class PrivateController extends BaseController | @@ -285,7 +285,7 @@ class PrivateController extends BaseController | ||
| 285 | public function getProjectOnline(Request $request) | 285 | public function getProjectOnline(Request $request) |
| 286 | { | 286 | { |
| 287 | $page_size = intval($request->input('page_size', 20)); | 287 | $page_size = intval($request->input('page_size', 20)); |
| 288 | - $projects = Project::select(['id', 'title', 'company', 'type', 'finish_remain_day', 'remain_day'])->whereIn('type', [2, 3, 4, 6])->where('delete_status', 0)->paginate($page_size); | 288 | + $projects = Project::select(['id', 'title', 'company', 'type', 'finish_remain_day', 'remain_day'])->where('extend_type', 0)->whereIn('type', [2, 3, 4, 6])->where('delete_status', 0)->paginate($page_size); |
| 289 | foreach ($projects as $project) { | 289 | foreach ($projects as $project) { |
| 290 | $project->domain = $project->domainInfo ? $project->domainInfo->domain : ''; | 290 | $project->domain = $project->domainInfo ? $project->domainInfo->domain : ''; |
| 291 | } | 291 | } |
| @@ -354,7 +354,7 @@ class PrivateController extends BaseController | @@ -354,7 +354,7 @@ class PrivateController extends BaseController | ||
| 354 | public function upgradeProjectDomain() | 354 | public function upgradeProjectDomain() |
| 355 | { | 355 | { |
| 356 | $domain = Project::leftJoin('gl_domain_info', 'gl_project.id', '=', 'gl_domain_info.project_id') | 356 | $domain = Project::leftJoin('gl_domain_info', 'gl_project.id', '=', 'gl_domain_info.project_id') |
| 357 | - ->where(['gl_project.is_upgrade' => Project::IS_UPGRADE_TRUE, 'gl_project.delete_status' => Project::IS_DEL_FALSE]) | 357 | + ->where(['gl_project.is_upgrade' => Project::IS_UPGRADE_TRUE, 'gl_project.delete_status' => Project::IS_DEL_FALSE, 'gl_project.extend_type' => 0]) |
| 358 | ->pluck('domain') | 358 | ->pluck('domain') |
| 359 | ->toArray(); | 359 | ->toArray(); |
| 360 | $list = array_filter(array_unique($domain)); | 360 | $list = array_filter(array_unique($domain)); |
| @@ -805,7 +805,7 @@ class ProjectController extends BaseController | @@ -805,7 +805,7 @@ class ProjectController extends BaseController | ||
| 805 | "id" => $item['id'], | 805 | "id" => $item['id'], |
| 806 | "title" => $item['title'], | 806 | "title" => $item['title'], |
| 807 | "company" => $item['company'], | 807 | "company" => $item['company'], |
| 808 | - "type" => $item['type'], | 808 | + "type" => $item['extend_type'] ?: $item['type'], |
| 809 | "type_text" => Project::typeMap()[$item['type']] ?? '', | 809 | "type_text" => Project::typeMap()[$item['type']] ?? '', |
| 810 | "channel" => $item['channel'], | 810 | "channel" => $item['channel'], |
| 811 | "created_at" => $item['created_at'], | 811 | "created_at" => $item['created_at'], |
| @@ -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 |
| @@ -31,8 +31,7 @@ class BTemplateModuleProjectLogic extends BaseLogic | @@ -31,8 +31,7 @@ class BTemplateModuleProjectLogic extends BaseLogic | ||
| 31 | */ | 31 | */ |
| 32 | public function ModuleList($map,$order = 'created_at',$filed = ['id','name','status','image','html','project_id']){ | 32 | public function ModuleList($map,$order = 'created_at',$filed = ['id','name','status','image','html','project_id']){ |
| 33 | $map['deleted_status'] = 0; | 33 | $map['deleted_status'] = 0; |
| 34 | - $map['project_id'] = $this->user['project_id']; | ||
| 35 | - $list = $this->model->list($map,$order,$filed); | 34 | + $list = $this->model::whereRaw("FIND_IN_SET(?, project_id)", [$this->user['project_id']])->get()->toArray(); |
| 36 | $templateLabel = new TemplateLabel(); | 35 | $templateLabel = new TemplateLabel(); |
| 37 | $label = []; | 36 | $label = []; |
| 38 | foreach ($list as $v){ | 37 | foreach ($list as $v){ |
| @@ -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 = [ |
-
请 注册 或 登录 后发表评论