正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
| @@ -331,6 +331,7 @@ class ProjectUpdate extends Command | @@ -331,6 +331,7 @@ class ProjectUpdate extends Command | ||
| 331 | 'status' => Product::STATUS_ON, | 331 | 'status' => Product::STATUS_ON, |
| 332 | 'created_at' => $item['post_date'] ?? date('Y-m-d H:i:s'), | 332 | 'created_at' => $item['post_date'] ?? date('Y-m-d H:i:s'), |
| 333 | 'updated_at' => $item['post_date'] ?? date('Y-m-d H:i:s'), | 333 | 'updated_at' => $item['post_date'] ?? date('Y-m-d H:i:s'), |
| 334 | + 'send_time' => $item['post_date'] ?? date('Y-m-d H:i:s'), | ||
| 334 | 'sort' => $item['sort'] ?? 0, | 335 | 'sort' => $item['sort'] ?? 0, |
| 335 | 'is_upgrade' => 1, | 336 | 'is_upgrade' => 1, |
| 336 | 'six_read' => 1, | 337 | 'six_read' => 1, |
| @@ -357,6 +358,7 @@ class ProjectUpdate extends Command | @@ -357,6 +358,7 @@ class ProjectUpdate extends Command | ||
| 357 | 'keyword' => $item['keywords'] ?? '', | 358 | 'keyword' => $item['keywords'] ?? '', |
| 358 | 'description' => $item['description'] ?? '' | 359 | 'description' => $item['description'] ?? '' |
| 359 | ]), | 360 | ]), |
| 361 | + 'send_time' => $item['post_date'] ?? date('Y-m-d H:i:s'), | ||
| 360 | 'sort' => $item['sort'] ?? 0, | 362 | 'sort' => $item['sort'] ?? 0, |
| 361 | ], ['id' => $id]); | 363 | ], ['id' => $id]); |
| 362 | } | 364 | } |
| @@ -469,6 +471,7 @@ class ProjectUpdate extends Command | @@ -469,6 +471,7 @@ class ProjectUpdate extends Command | ||
| 469 | 'status' => $api_type == 'news' ? News::STATUS_ONE : Blog::STATUS_ONE, | 471 | 'status' => $api_type == 'news' ? News::STATUS_ONE : Blog::STATUS_ONE, |
| 470 | 'created_at' => $item['post_date'] ?? date('Y-m-d H:i:s'), | 472 | 'created_at' => $item['post_date'] ?? date('Y-m-d H:i:s'), |
| 471 | 'updated_at' => $item['post_date'] ?? date('Y-m-d H:i:s'), | 473 | 'updated_at' => $item['post_date'] ?? date('Y-m-d H:i:s'), |
| 474 | + 'release_at' => $item['post_date'] ?? date('Y-m-d H:i:s'), | ||
| 472 | 'sort' => $item['sort'] ?? 0, | 475 | 'sort' => $item['sort'] ?? 0, |
| 473 | 'is_upgrade' => 1, | 476 | 'is_upgrade' => 1, |
| 474 | 'six_read' => 1, | 477 | 'six_read' => 1, |
| @@ -490,6 +493,7 @@ class ProjectUpdate extends Command | @@ -490,6 +493,7 @@ class ProjectUpdate extends Command | ||
| 490 | 'seo_description' => $item['description'] ?? '', | 493 | 'seo_description' => $item['description'] ?? '', |
| 491 | 'text' => $item['content'] ?? '', | 494 | 'text' => $item['content'] ?? '', |
| 492 | 'image' => $new_img, | 495 | 'image' => $new_img, |
| 496 | + 'release_at' => $item['post_date'] ?? date('Y-m-d H:i:s'), | ||
| 493 | 'sort' => $item['sort'] ?? 0, | 497 | 'sort' => $item['sort'] ?? 0, |
| 494 | ], ['id' => $id]); | 498 | ], ['id' => $id]); |
| 495 | } | 499 | } |
| @@ -659,6 +663,7 @@ class ProjectUpdate extends Command | @@ -659,6 +663,7 @@ class ProjectUpdate extends Command | ||
| 659 | 'image' => $new_img, | 663 | 'image' => $new_img, |
| 660 | 'created_at' => $item['post_time'] ?? date('Y-m-d H:i:s'), | 664 | 'created_at' => $item['post_time'] ?? date('Y-m-d H:i:s'), |
| 661 | 'updated_at' => $item['post_time'] ?? date('Y-m-d H:i:s'), | 665 | 'updated_at' => $item['post_time'] ?? date('Y-m-d H:i:s'), |
| 666 | + 'release_at' => $item['post_time'] ?? date('Y-m-d H:i:s'), | ||
| 662 | 'is_upgrade' => 1, | 667 | 'is_upgrade' => 1, |
| 663 | 'six_read' => 1, | 668 | 'six_read' => 1, |
| 664 | 'route' => $route | 669 | 'route' => $route |
| @@ -676,6 +681,7 @@ class ProjectUpdate extends Command | @@ -676,6 +681,7 @@ class ProjectUpdate extends Command | ||
| 676 | 'category_id' => $category_id, | 681 | 'category_id' => $category_id, |
| 677 | 'content' => $item['content'] ?? '', | 682 | 'content' => $item['content'] ?? '', |
| 678 | 'sort' => $item['sort'] ?? 0, | 683 | 'sort' => $item['sort'] ?? 0, |
| 684 | + 'release_at' => $item['post_time'] ?? date('Y-m-d H:i:s'), | ||
| 679 | 'image' => $new_img | 685 | 'image' => $new_img |
| 680 | ], ['id' => $id]); | 686 | ], ['id' => $id]); |
| 681 | } | 687 | } |
-
请 注册 或 登录 后发表评论