完善分页

This commit is contained in:
yunwuxin
2017-01-16 14:41:39 +08:00
parent 771c0a90be
commit b4290f0d01
5 changed files with 203 additions and 165 deletions

View File

@@ -225,7 +225,7 @@ class Collection implements ArrayAccess, Countable, IteratorAggregate, JsonSeria
$result = [];
foreach ($this->items as $row) {
$key = $value = null;
$key = $value = null;
$keySet = $valueSet = false;
if (null !== $index_key && array_key_exists($index_key, $row)) {
$keySet = true;