From 61bb4353535ec7af3dd7ff7d900cad4dd37d2ed7 Mon Sep 17 00:00:00 2001 From: weizong song Date: Wed, 10 Mar 2021 00:05:08 +0800 Subject: [PATCH] up --- app/Http/Controllers/Customer/OrdersController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Customer/OrdersController.php b/app/Http/Controllers/Customer/OrdersController.php index 729f998..e4a4ca8 100644 --- a/app/Http/Controllers/Customer/OrdersController.php +++ b/app/Http/Controllers/Customer/OrdersController.php @@ -203,8 +203,8 @@ class OrdersController extends CommonController public function list() { - //$data = (new Orders())->ofCustomer($this->customer->id); - $data = new Orders(); + $data = (new Orders())->ofCustomer($this->customer->id); + //$data = new Orders(); if (request()->keyword) { $keyword = request()->keyword; $data = $data->where(function ($query) use ($keyword) {