正在显示
1 个修改的文件
包含
8 行增加
和
3 行删除
| @@ -5,7 +5,6 @@ namespace App\Console\Commands\Update; | @@ -5,7 +5,6 @@ namespace App\Console\Commands\Update; | ||
| 5 | use App\Helper\Arr; | 5 | use App\Helper\Arr; |
| 6 | use App\Http\Logic\Bside\News\NewsLogic; | 6 | use App\Http\Logic\Bside\News\NewsLogic; |
| 7 | use App\Http\Logic\Bside\Product\CategoryLogic; | 7 | use App\Http\Logic\Bside\Product\CategoryLogic; |
| 8 | -use App\Jobs\SyncImageFileJob; | ||
| 9 | use App\Models\Blog\Blog; | 8 | use App\Models\Blog\Blog; |
| 10 | use App\Models\Collect\CollectSource; | 9 | use App\Models\Collect\CollectSource; |
| 11 | use App\Models\Collect\CollectTask; | 10 | use App\Models\Collect\CollectTask; |
| @@ -16,6 +15,7 @@ use App\Models\CustomModule\CustomModuleCategory; | @@ -16,6 +15,7 @@ use App\Models\CustomModule\CustomModuleCategory; | ||
| 16 | use App\Models\CustomModule\CustomModuleContent; | 15 | use App\Models\CustomModule\CustomModuleContent; |
| 17 | use App\Models\CustomModule\CustomModuleExtend; | 16 | use App\Models\CustomModule\CustomModuleExtend; |
| 18 | use App\Models\CustomModule\CustomModuleExtentContent; | 17 | use App\Models\CustomModule\CustomModuleExtentContent; |
| 18 | +use App\Models\File\ErrorFile; | ||
| 19 | use App\Models\News\News; | 19 | use App\Models\News\News; |
| 20 | use App\Models\News\NewsCategory; | 20 | use App\Models\News\NewsCategory; |
| 21 | use App\Models\Product\Category; | 21 | use App\Models\Product\Category; |
| @@ -1064,8 +1064,13 @@ class ProjectUpdate extends Command | @@ -1064,8 +1064,13 @@ class ProjectUpdate extends Command | ||
| 1064 | ]); | 1064 | ]); |
| 1065 | 1065 | ||
| 1066 | //同步到177 | 1066 | //同步到177 |
| 1067 | - $new_url_name = basename($new_url); | ||
| 1068 | - SyncImageFileJob::dispatch(['path' => str_replace('/' . $new_url_name, '', $new_url), 'name' => $new_url_name, 'location' => 0]); | 1067 | + $error_file = ErrorFile::where('path',$new_url)->first(); |
| 1068 | + if(!$error_file){ | ||
| 1069 | + $error_file = new ErrorFile(); | ||
| 1070 | + $error_file->path = $new_url; | ||
| 1071 | + $error_file->status = 0; | ||
| 1072 | + } | ||
| 1073 | + | ||
| 1069 | return getImageUrl($new_url); | 1074 | return getImageUrl($new_url); |
| 1070 | } else { | 1075 | } else { |
| 1071 | return $url_complete; | 1076 | return $url_complete; |
-
请 注册 或 登录 后发表评论