feat : site
This commit is contained in:
@@ -86,7 +86,8 @@ class OssDelByOssIdTask
|
|||||||
//删除oss资源
|
//删除oss资源
|
||||||
//把图片地址丢到删除redis队列
|
//把图片地址丢到删除redis队列
|
||||||
foreach ($urlList as $item) {
|
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));
|
$this->log->notice(__CLASS__.':success:删除oss文件个数:' . count($ossIds));
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class OssDelByUrlTask
|
|||||||
|
|
||||||
if (!empty($url)) {
|
if (!empty($url)) {
|
||||||
$delNum++;
|
$delNum++;
|
||||||
$OssClient->deleteObject($bucket, substr(parse_url($url)['path'],1));
|
$OssClient->deleteObject($bucket, $url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user