From e15d5961f0a2d0d455049a0e8776e72d9aef7409 Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Wed, 18 Mar 2020 16:01:10 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/OrderController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/OrderController.php b/app/Http/Controllers/Admin/OrderController.php index be3ab3ad..96982fc5 100644 --- a/app/Http/Controllers/Admin/OrderController.php +++ b/app/Http/Controllers/Admin/OrderController.php @@ -60,7 +60,7 @@ class OrderController extends Controller abort(500, '订单不存在'); } - if ((int)$params['status'] === 2) { + if (isset($params['status']) && (int)$params['status'] === 2) { $orderService = new OrderService($order); if (!$orderService->cancel()) { abort(500, '更新失败');