feat : site

This commit is contained in:
2024-11-21 15:16:56 +08:00
parent 211601a40f
commit 693b15cd3f
2 changed files with 3 additions and 2 deletions

View File

@@ -86,7 +86,8 @@ class OssDelByOssIdTask
//删除oss资源
//把图片地址丢到删除redis队列
foreach ($urlList as $item) {
$this->redis->lPush(CommonRedisKey::getDeleteOssImgListByUrl(), $item,'system');
$url = substr(parse_url($item)['path'],1);
$this->redis->lPush(CommonRedisKey::getDeleteOssImgListByUrl(), $url,'system');
}
$this->log->notice(__CLASS__.':success:删除oss文件个数:' . count($ossIds));

View File

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