getOssIdListByIsEnabled($time); if (empty($list)){ $this->log->notice(__CLASS__.'昨日没有无效的资源'); return; } foreach ($list->toArray() as $item) { $this->redis->lPush(CommonRedisKey::getDeleteOssImgListByOssId(), (string)$item,'system'); } $this->log->notice(__CLASS__.'异步删除昨日无效图片'); } }