From 75a5b93abd2974bb50f5e29ef1003b0a09729dec Mon Sep 17 00:00:00 2001 From: root Date: Fri, 29 Nov 2019 01:45:26 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/OrderController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/Admin/OrderController.php b/app/Http/Controllers/Admin/OrderController.php index 82cffa86..483942c7 100644 --- a/app/Http/Controllers/Admin/OrderController.php +++ b/app/Http/Controllers/Admin/OrderController.php @@ -20,6 +20,9 @@ class OrderController extends Controller if ($request->input('is_commission')) { $orderModel->where('invite_user_id', '!=', NULL); } + if ($request->input('id')) { + $orderModel->where('id', $request->input('id')); + } $total = $orderModel->count(); $res = $orderModel->forPage($current, $pageSize) ->get();