feat : oss

This commit is contained in:
2024-11-12 11:14:48 +08:00
parent a9f81888b7
commit 86b94d168c
7 changed files with 74 additions and 12 deletions

View File

@@ -49,7 +49,7 @@ class OssDelByOssIdTask
$delNum = 0;
$ossIds = [];
for ($i = 1; $i < 50; $i++) {
$one = $this->redis->rPop($key);
$one = $this->redis->rPop($key,'system');
if (empty($one)){
continue;
}
@@ -87,7 +87,7 @@ class OssDelByOssIdTask
//删除oss资源
//把图片地址丢到删除redis队列
foreach ($urlList as $item) {
$this->redis->lPush(CommonRedisKey::getDeleteOssImgListByUrl(), $item);
$this->redis->lPush(CommonRedisKey::getDeleteOssImgListByUrl(), $item,'system');
}
$this->log->notice(__CLASS__.':success:删除oss文件个数:' . $delNum);

View File

@@ -62,7 +62,7 @@ class OssDelByUrlTask
$delNum = 0;
for ($i = 1; $i < 50; $i++) {
$url = $this->redis->rPop($key);
$url = $this->redis->rPop($key,'system');
if (!empty($url)) {
$delNum++;