优化获取订单
This commit is contained in:
parent
4d95c182a6
commit
ba0d6a527e
@ -189,6 +189,8 @@ class StoreOrder extends BaseController
|
|||||||
{
|
{
|
||||||
[$page, $limit] = $this->getPage();
|
[$page, $limit] = $this->getPage();
|
||||||
$source = $this->request->param('source');
|
$source = $this->request->param('source');
|
||||||
|
$source = !isset($source)?2:$source; // 默认来源为2 普通商品订单
|
||||||
|
|
||||||
$list = $groupOrderRepository->getList(['uid' => $this->request->uid(), 'paid' => 0], $page, $limit,$source);
|
$list = $groupOrderRepository->getList(['uid' => $this->request->uid(), 'paid' => 0], $page, $limit,$source);
|
||||||
return app('json')->success($list);
|
return app('json')->success($list);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user