Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into lyh-server
正在显示
4 个修改的文件
包含
28 行增加
和
11 行删除
| @@ -403,11 +403,18 @@ class DomainInfo extends Command | @@ -403,11 +403,18 @@ class DomainInfo extends Command | ||
| 403 | * @param $domain_id | 403 | * @param $domain_id |
| 404 | * @param $domain | 404 | * @param $domain |
| 405 | * @param $is_end | 405 | * @param $is_end |
| 406 | + * @return bool | ||
| 406 | * @author Akun | 407 | * @author Akun |
| 407 | * @date 2025/08/14 9:56 | 408 | * @date 2025/08/14 9:56 |
| 408 | */ | 409 | */ |
| 409 | public function domainChatMessage($project_id, $domain_id, $domain, $is_end) | 410 | public function domainChatMessage($project_id, $domain_id, $domain, $is_end) |
| 410 | { | 411 | { |
| 412 | + //每周一推送 | ||
| 413 | + $week_day = date('w'); | ||
| 414 | + if ($week_day != 1) { | ||
| 415 | + return true; | ||
| 416 | + } | ||
| 417 | + | ||
| 411 | //项目是否有绑定群 | 418 | //项目是否有绑定群 |
| 412 | $friend_id = ProjectAssociation::where('project_id', $project_id) | 419 | $friend_id = ProjectAssociation::where('project_id', $project_id) |
| 413 | ->where('status', ProjectAssociation::STATUS_NORMAL) | 420 | ->where('status', ProjectAssociation::STATUS_NORMAL) |
| @@ -431,6 +438,8 @@ class DomainInfo extends Command | @@ -431,6 +438,8 @@ class DomainInfo extends Command | ||
| 431 | $messagePushModel = new MessagePush(); | 438 | $messagePushModel = new MessagePush(); |
| 432 | $messagePushModel->add($param); | 439 | $messagePushModel->add($param); |
| 433 | } | 440 | } |
| 441 | + | ||
| 442 | + return true; | ||
| 434 | } | 443 | } |
| 435 | 444 | ||
| 436 | /** | 445 | /** |
| @@ -439,6 +448,12 @@ class DomainInfo extends Command | @@ -439,6 +448,12 @@ class DomainInfo extends Command | ||
| 439 | */ | 448 | */ |
| 440 | public function domainChatMessageV5() | 449 | public function domainChatMessageV5() |
| 441 | { | 450 | { |
| 451 | + //每周一推送 | ||
| 452 | + $week_day = date('w'); | ||
| 453 | + if ($week_day != 1) { | ||
| 454 | + return true; | ||
| 455 | + } | ||
| 456 | + | ||
| 442 | $domain_json = @file_get_contents('https://www.quanqiusou.cn/extend_api/aicc/domain_expire_lists.php'); | 457 | $domain_json = @file_get_contents('https://www.quanqiusou.cn/extend_api/aicc/domain_expire_lists.php'); |
| 443 | $domains = json_decode($domain_json, true); | 458 | $domains = json_decode($domain_json, true); |
| 444 | if (empty($domains)) | 459 | if (empty($domains)) |
| @@ -83,7 +83,7 @@ class RankData extends BaseCommands | @@ -83,7 +83,7 @@ class RankData extends BaseCommands | ||
| 83 | //白帽SEO版 | 83 | //白帽SEO版 |
| 84 | $list = Project::leftJoin('gl_project_deploy_build', 'gl_project.id', '=', 'gl_project_deploy_build.project_id') | 84 | $list = Project::leftJoin('gl_project_deploy_build', 'gl_project.id', '=', 'gl_project_deploy_build.project_id') |
| 85 | ->where('gl_project.delete_status',0) | 85 | ->where('gl_project.delete_status',0) |
| 86 | - ->where('gl_project_deploy_build.seo_plan', 1) | 86 | + ->where('gl_project_deploy_build.seo_plan', '>', 0) |
| 87 | ->whereIn('gl_project.type',[2,3,4]) | 87 | ->whereIn('gl_project.type',[2,3,4]) |
| 88 | ->orderBy('gl_project.id', 'asc') | 88 | ->orderBy('gl_project.id', 'asc') |
| 89 | ->pluck('gl_project.id')->toArray(); | 89 | ->pluck('gl_project.id')->toArray(); |
| @@ -1178,7 +1178,14 @@ class ProjectController extends BaseController | @@ -1178,7 +1178,14 @@ class ProjectController extends BaseController | ||
| 1178 | $this->response('success'); | 1178 | $this->response('success'); |
| 1179 | } | 1179 | } |
| 1180 | 1180 | ||
| 1181 | - if($projectInfo['serve_id'] == 8){ | 1181 | + //获取服务器数据 |
| 1182 | + $serverIpModel = new ServersIp(); | ||
| 1183 | + $serversIpInfo = $serverIpModel->read(['id' => $projectInfo['serve_id']], ['servers_id']); | ||
| 1184 | + if(!$serversIpInfo){ | ||
| 1185 | + $this->fail('获取项目所属服务器失败'); | ||
| 1186 | + } | ||
| 1187 | + | ||
| 1188 | + if($serversIpInfo['servers_id'] == ServerConfig::SELF_SITE_ID){ | ||
| 1182 | //自建站项目 | 1189 | //自建站项目 |
| 1183 | if($this->param['site_status'] == 1){ | 1190 | if($this->param['site_status'] == 1){ |
| 1184 | //关闭站点 | 1191 | //关闭站点 |
| @@ -1206,12 +1213,6 @@ class ProjectController extends BaseController | @@ -1206,12 +1213,6 @@ class ProjectController extends BaseController | ||
| 1206 | } | 1213 | } |
| 1207 | }else{ | 1214 | }else{ |
| 1208 | //开启站点:创建建站任务 | 1215 | //开启站点:创建建站任务 |
| 1209 | - $serverIpModel = new ServersIp(); | ||
| 1210 | - $serversIpInfo = $serverIpModel->read(['id' => $projectInfo['serve_id']], ['servers_id']); | ||
| 1211 | - if(!$serversIpInfo){ | ||
| 1212 | - $this->fail('获取项目所属服务器失败'); | ||
| 1213 | - } | ||
| 1214 | - | ||
| 1215 | if ($projectInfo['project_type'] == Project::PROJECT_TYPE_SEO) { | 1216 | if ($projectInfo['project_type'] == Project::PROJECT_TYPE_SEO) { |
| 1216 | $type = DomainCreateTask::TYPE_BLOG; | 1217 | $type = DomainCreateTask::TYPE_BLOG; |
| 1217 | } else { | 1218 | } else { |
| @@ -103,9 +103,10 @@ return [ | @@ -103,9 +103,10 @@ return [ | ||
| 103 | ], | 103 | ], |
| 104 | //域名解析别处记录日志 | 104 | //域名解析别处记录日志 |
| 105 | 'analyze_other' => [ | 105 | 'analyze_other' => [ |
| 106 | - 'driver' => 'custom', | ||
| 107 | - 'via' => \App\Factory\LogFormatterFactory::class, | ||
| 108 | - 'prefix' => 'analyze_other', | 106 | + 'driver' => 'daily', |
| 107 | + 'path' => storage_path('logs/analyze_other/laravel.log'), | ||
| 108 | + 'level' => 'debug', | ||
| 109 | + 'days' => 14, | ||
| 109 | ], | 110 | ], |
| 110 | 'stack' => [ | 111 | 'stack' => [ |
| 111 | 'driver' => 'stack', | 112 | 'driver' => 'stack', |
-
请 注册 或 登录 后发表评论