正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -14,6 +14,7 @@ use App\Models\Project\Project; | @@ -14,6 +14,7 @@ use App\Models\Project\Project; | ||
| 14 | use App\Services\AmazonS3Service; | 14 | use App\Services\AmazonS3Service; |
| 15 | use App\Services\CosService; | 15 | use App\Services\CosService; |
| 16 | use App\Services\TencentCosService; | 16 | use App\Services\TencentCosService; |
| 17 | +use App\Services\UpyunService; | ||
| 17 | use Illuminate\Http\Exceptions\HttpResponseException; | 18 | use Illuminate\Http\Exceptions\HttpResponseException; |
| 18 | use Illuminate\Http\JsonResponse; | 19 | use Illuminate\Http\JsonResponse; |
| 19 | use Illuminate\Support\Facades\Cache; | 20 | use Illuminate\Support\Facades\Cache; |
| @@ -532,6 +533,8 @@ class ImageController extends Controller | @@ -532,6 +533,8 @@ class ImageController extends Controller | ||
| 532 | ]); | 533 | ]); |
| 533 | $cos = new CosService(); | 534 | $cos = new CosService(); |
| 534 | $url = $cos->coverOriginalImage($this->param['url'],$this->param['saveUrl']); | 535 | $url = $cos->coverOriginalImage($this->param['url'],$this->param['saveUrl']); |
| 536 | + $upYun = new UpyunService(); | ||
| 537 | + $upYun->purgePush($url); | ||
| 535 | $this->response('success',Code::SUCCESS,['url'=>$url]); | 538 | $this->response('success',Code::SUCCESS,['url'=>$url]); |
| 536 | } | 539 | } |
| 537 | 540 |
-
请 注册 或 登录 后发表评论