正在显示
1 个修改的文件
包含
15 行增加
和
0 行删除
| @@ -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)) |
-
请 注册 或 登录 后发表评论