正在显示
1 个修改的文件
包含
10 行增加
和
0 行删除
| @@ -14,6 +14,7 @@ use App\Models\Devops\ServerConfig; | @@ -14,6 +14,7 @@ use App\Models\Devops\ServerConfig; | ||
| 14 | use App\Models\Devops\ServersIp; | 14 | use App\Models\Devops\ServersIp; |
| 15 | use App\Models\Domain\DomainCreateTask; | 15 | use App\Models\Domain\DomainCreateTask; |
| 16 | use App\Models\Domain\DomainInfo; | 16 | use App\Models\Domain\DomainInfo; |
| 17 | +use App\Models\Inquiry\ForwardCount; | ||
| 17 | use App\Models\Inquiry\InquiryInfo; | 18 | use App\Models\Inquiry\InquiryInfo; |
| 18 | use App\Models\Inquiry\InquiryRelayAi; | 19 | use App\Models\Inquiry\InquiryRelayAi; |
| 19 | use App\Models\Product\Category; | 20 | use App\Models\Product\Category; |
| @@ -49,7 +50,16 @@ class Temp extends Command | @@ -49,7 +50,16 @@ class Temp extends Command | ||
| 49 | 50 | ||
| 50 | public function handle() | 51 | public function handle() |
| 51 | { | 52 | { |
| 53 | + $list = ForwardCount::get(); | ||
| 52 | 54 | ||
| 55 | + foreach ($list as $value) { | ||
| 56 | + $day = $value->year . '-' . $value->month . '-' . $value->day; | ||
| 57 | + $value->created_at = date('Y-m-d 00:30:02', strtotime($day . ' +1 day')); | ||
| 58 | + $value->updated_at = date('Y-m-d 00:30:02', strtotime($day . ' +1 day')); | ||
| 59 | + $value->save(); | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | + $this->output('success'); | ||
| 53 | } | 63 | } |
| 54 | 64 | ||
| 55 | /** | 65 | /** |
-
请 注册 或 登录 后发表评论