正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -401,7 +401,7 @@ class Classification extends Api | @@ -401,7 +401,7 @@ class Classification extends Api | ||
401 | ->where('category_id', $sort_id) | 401 | ->where('category_id', $sort_id) |
402 | ->where('goods_status', '10') | 402 | ->where('goods_status', '10') |
403 | ->field('goods_id,spec_type,goods_name,image') | 403 | ->field('goods_id,spec_type,goods_name,image') |
404 | - ->paginate(10, false, ['page' => $page]) | 404 | + ->paginate(10) |
405 | ->each(function (&$item) { | 405 | ->each(function (&$item) { |
406 | if ($this->auth->isLogin()) { | 406 | if ($this->auth->isLogin()) { |
407 | $item['cart_number'] = Db::name('cart') | 407 | $item['cart_number'] = Db::name('cart') |
@@ -472,7 +472,7 @@ class Classification extends Api | @@ -472,7 +472,7 @@ class Classification extends Api | ||
472 | ->where('is_delete', '0') | 472 | ->where('is_delete', '0') |
473 | ->where('goods_status', '10') | 473 | ->where('goods_status', '10') |
474 | ->field('goods_id,goods_name,spec_type,image') | 474 | ->field('goods_id,goods_name,spec_type,image') |
475 | - ->paginate(10, false, ['page' => $page]) | 475 | + ->paginate(10) |
476 | ->each(function (&$item) { | 476 | ->each(function (&$item) { |
477 | if ($this->auth->isLogin()) { | 477 | if ($this->auth->isLogin()) { |
478 | $item['cart_number'] = Db::name('cart') | 478 | $item['cart_number'] = Db::name('cart') |
-
请 注册 或 登录 后发表评论