合并分支 'akun' 到 'master'
Akun 查看合并请求 !752
正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -5,6 +5,7 @@ namespace App\Console\Commands\Update; | @@ -5,6 +5,7 @@ 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; | ||
| 8 | use App\Models\Blog\Blog; | 9 | use App\Models\Blog\Blog; |
| 9 | use App\Models\Collect\CollectSource; | 10 | use App\Models\Collect\CollectSource; |
| 10 | use App\Models\Collect\CollectTask; | 11 | use App\Models\Collect\CollectTask; |
| @@ -1062,6 +1063,9 @@ class ProjectUpdate extends Command | @@ -1062,6 +1063,9 @@ class ProjectUpdate extends Command | ||
| 1062 | 'updated_at' => date('Y-m-d H:i:s'), | 1063 | 'updated_at' => date('Y-m-d H:i:s'), |
| 1063 | ]); | 1064 | ]); |
| 1064 | 1065 | ||
| 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]); | ||
| 1065 | return getImageUrl($new_url); | 1069 | return getImageUrl($new_url); |
| 1066 | } else { | 1070 | } else { |
| 1067 | return $url_complete; | 1071 | return $url_complete; |
-
请 注册 或 登录 后发表评论