diff --git a/application/common/QueueRedis.php b/application/common/QueueRedis.php index b96e2d3..fb9fb5f 100644 --- a/application/common/QueueRedis.php +++ b/application/common/QueueRedis.php @@ -347,11 +347,11 @@ LUA; } // 获取分块进度 - public function getChunkProgress($key, $chunkIndex = '') + public function getChunkProgress($key, $chunkIndex = '-1') { $redis = $this->connect(); - if(empty($chunkIndex)){ + if($chunkIndex == '-1'){ $aChunkValue = $redis->hGetAll($key); }else{