作者 李宇航

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

修复脚本



查看合并请求 !1046
@@ -83,7 +83,7 @@ class SendProduct extends Command @@ -83,7 +83,7 @@ class SendProduct extends Command
83 * @time :2024/8/30 14:44 83 * @time :2024/8/30 14:44
84 */ 84 */
85 public function sendProduct(){ 85 public function sendProduct(){
86 - $start_date = date('Y-m-d H:i:s'); 86 + $start_date = date('Y-m-d 00:00:00');
87 $end_date = date('Y-m-d 23:59:59'); 87 $end_date = date('Y-m-d 23:59:59');
88 $productModel = new Product(); 88 $productModel = new Product();
89 $arr = $productModel->formatQuery(['send_time'=>['between',[$start_date,$end_date]],'status'=>3])->pluck('route'); 89 $arr = $productModel->formatQuery(['send_time'=>['between',[$start_date,$end_date]],'status'=>3])->pluck('route');
@@ -99,7 +99,7 @@ class SendProduct extends Command @@ -99,7 +99,7 @@ class SendProduct extends Command
99 * @time :2024/8/30 15:19 99 * @time :2024/8/30 15:19
100 */ 100 */
101 public function sendBlog(){ 101 public function sendBlog(){
102 - $start_date = date('Y-m-d H:i:s'); 102 + $start_date = date('Y-m-d 00:00:00');
103 $end_date = date('Y-m-d 23:59:59'); 103 $end_date = date('Y-m-d 23:59:59');
104 $blogModel = new Blog(); 104 $blogModel = new Blog();
105 $arr = $blogModel->formatQuery(['release_at'=>['between',[$start_date,$end_date]],'status'=>3])->pluck('url'); 105 $arr = $blogModel->formatQuery(['release_at'=>['between',[$start_date,$end_date]],'status'=>3])->pluck('url');
@@ -115,7 +115,7 @@ class SendProduct extends Command @@ -115,7 +115,7 @@ class SendProduct extends Command
115 * @time :2024/8/30 15:19 115 * @time :2024/8/30 15:19
116 */ 116 */
117 public function sendNews(){ 117 public function sendNews(){
118 - $start_date = date('Y-m-d H:i:s'); 118 + $start_date = date('Y-m-d 00:00:00');
119 $end_date = date('Y-m-d 23:59:59'); 119 $end_date = date('Y-m-d 23:59:59');
120 $newsModel = new News(); 120 $newsModel = new News();
121 $arr = $newsModel->formatQuery(['release_at'=>['between',[$start_date,$end_date]],'status'=>3])->pluck('url'); 121 $arr = $newsModel->formatQuery(['release_at'=>['between',[$start_date,$end_date]],'status'=>3])->pluck('url');