feat : oss

This commit is contained in:
2024-11-21 11:31:20 +08:00
parent bc8fc54c3d
commit c1c10518cc
3 changed files with 18 additions and 2 deletions

View File

@@ -46,7 +46,6 @@ class OssDelByOssIdTask
try {
$key = CommonRedisKey::getDeleteOssImgListByOssId();
$delNum = 0;
$ossIds = [];
for ($i = 1; $i < 50; $i++) {
$one = $this->redis->rPop($key,'system');

View File

@@ -66,7 +66,7 @@ class OssDelByUrlTask
if (!empty($url)) {
$delNum++;
$OssClient->deleteObject($bucket, $url);
$OssClient->deleteObject($bucket, substr(parse_url($url)['path'],1));
}
}