feat : oss
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user