think-orm icon indicating copy to clipboard operation
think-orm copied to clipboard

当chunk查询数量小于$count时,还会继续查询一次

Open lanrenbulan opened this issue 3 years ago • 0 comments

是不是应该加一次$count判断

$total = count($resultSet);
while ($total > 0) {
    if (false === call_user_func($callback, $resultSet)) {
        return false;
    }
   
    if ($total < $count) {
        return true;
    }
}

lanrenbulan avatar Mar 22 '22 07:03 lanrenbulan