This commit is contained in:
aozhiwei 2022-09-19 18:22:16 +08:00
parent ed3db8ad4f
commit 9bbce80633

View File

@ -29,7 +29,15 @@ class FragmentPool extends BaseModel {
'alloc_time' => $allocTime,
)
);
return $rows ? $rows : array();
$items = array();
if ($rows) {
foreach ($rows as $row) {
if ($row['fragment_num'] > 0) {
array_push($items, $row);
}
}
}
return $items;
}
}