1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-24 20:06:09 +08:00

去除删除远程COS课件的逻辑

This commit is contained in:
xiaochong0302 2023-08-11 15:53:41 +08:00
parent f284a8ef92
commit 65b5190a05

View File

@ -96,14 +96,6 @@ class Resource extends Service
$course = $validator->checkCourse($resource->course_id);
$chapter = $validator->checkChapter($resource->chapter_id);
$validator = new UploadValidator();
$upload = $validator->checkUpload($resource->upload_id);
$storageService = new StorageService();
$storageService->deleteObject($upload->path);
$resource->delete();
$this->recountChapterResources($chapter);