Commit da8ca68c by 杨昕

统计

parent 9f72245b
Pipeline #10252 passed with stages
in 41 seconds
......@@ -91,7 +91,12 @@ class MediaModel extends Eloquent
];
$count = $collection->aggregate($aggregate1)->toArray()[0]['count'];
$count = $collection->aggregate($aggregate1)->toArray();
if (isset($count[0])){
$count = [0]['count'];
}else{
$count = 0;
}
$skip = ((empty($request->page) ? 1 : $request->page)-1) * $limit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment