合并分支 'lyh-server' 到 'master'
变更数据 查看合并请求 !3069
正在显示
1 个修改的文件
包含
0 行增加
和
3 行删除
| @@ -87,7 +87,6 @@ class SendProduct extends Command | @@ -87,7 +87,6 @@ class SendProduct extends Command | ||
| 87 | * @time :2024/8/30 14:44 | 87 | * @time :2024/8/30 14:44 |
| 88 | */ | 88 | */ |
| 89 | public function sendProduct(){ | 89 | public function sendProduct(){ |
| 90 | - $start_date = date('Y-m-d 00:00:00'); | ||
| 91 | $end_date = date('Y-m-d 23:59:59'); | 90 | $end_date = date('Y-m-d 23:59:59'); |
| 92 | $productModel = new Product(); | 91 | $productModel = new Product(); |
| 93 | $arr = $productModel->formatQuery(['send_time'=>['<=',$end_date],'status'=>3])->pluck('route')->toArray(); | 92 | $arr = $productModel->formatQuery(['send_time'=>['<=',$end_date],'status'=>3])->pluck('route')->toArray(); |
| @@ -103,7 +102,6 @@ class SendProduct extends Command | @@ -103,7 +102,6 @@ class SendProduct extends Command | ||
| 103 | * @time :2024/8/30 15:19 | 102 | * @time :2024/8/30 15:19 |
| 104 | */ | 103 | */ |
| 105 | public function sendBlog(){ | 104 | public function sendBlog(){ |
| 106 | - $start_date = date('Y-m-d 00:00:00'); | ||
| 107 | $end_date = date('Y-m-d 23:59:59'); | 105 | $end_date = date('Y-m-d 23:59:59'); |
| 108 | $blogModel = new Blog(); | 106 | $blogModel = new Blog(); |
| 109 | $arr = $blogModel->formatQuery(['release_at'=>['<=',$end_date],'status'=>3])->pluck('url')->toArray(); | 107 | $arr = $blogModel->formatQuery(['release_at'=>['<=',$end_date],'status'=>3])->pluck('url')->toArray(); |
| @@ -119,7 +117,6 @@ class SendProduct extends Command | @@ -119,7 +117,6 @@ class SendProduct extends Command | ||
| 119 | * @time :2024/8/30 15:19 | 117 | * @time :2024/8/30 15:19 |
| 120 | */ | 118 | */ |
| 121 | public function sendNews(){ | 119 | public function sendNews(){ |
| 122 | - $start_date = date('Y-m-d 00:00:00'); | ||
| 123 | $end_date = date('Y-m-d 23:59:59'); | 120 | $end_date = date('Y-m-d 23:59:59'); |
| 124 | $newsModel = new News(); | 121 | $newsModel = new News(); |
| 125 | $arr = $newsModel->formatQuery(['release_at'=>['<=',$end_date],'status'=>3])->pluck('url')->toArray(); | 122 | $arr = $newsModel->formatQuery(['release_at'=>['<=',$end_date],'status'=>3])->pluck('url')->toArray(); |
-
请 注册 或 登录 后发表评论