正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -307,7 +307,7 @@ class Index extends Api | @@ -307,7 +307,7 @@ class Index extends Api | ||
307 | if ($param['type'] == 1) { | 307 | if ($param['type'] == 1) { |
308 | $map3['is_show'] = ['eq', 1]; | 308 | $map3['is_show'] = ['eq', 1]; |
309 | } | 309 | } |
310 | - $rult = Db::name('seller')->where($map3)->where($map)->where($map2)->order('id desc')->page($param['pages'], $param['rows'])->select(); | 310 | + $rult = Db::name('seller')->where($map3)->where($map)->where($map2)->order('id desc')->select(); |
311 | $count = Db::name('seller')->where($map3)->where($map)->where($map2)->order('id desc')->select(); | 311 | $count = Db::name('seller')->where($map3)->where($map)->where($map2)->order('id desc')->select(); |
312 | if (empty($rult)) { | 312 | if (empty($rult)) { |
313 | //如果为空 | 313 | //如果为空 |
@@ -332,6 +332,7 @@ class Index extends Api | @@ -332,6 +332,7 @@ class Index extends Api | ||
332 | } | 332 | } |
333 | $newarr = array_column($ruestul, 'from'); | 333 | $newarr = array_column($ruestul, 'from'); |
334 | array_multisort($newarr, SORT_ASC, $ruestul); | 334 | array_multisort($newarr, SORT_ASC, $ruestul); |
335 | + $ruestul = $this->page_array($param['rows'], $param['pages'], $ruestul, 0); | ||
335 | $list = [ | 336 | $list = [ |
336 | 'count' => count($count), | 337 | 'count' => count($count), |
337 | 'list' => $ruestul | 338 | 'list' => $ruestul |
-
请 注册 或 登录 后发表评论