From 83a0374494e922893a715d3720f9a7ac88c2c580 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Oct 2019 17:36:38 +0800 Subject: [PATCH] update --- app/Http/Controllers/Guest/OrderController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Guest/OrderController.php b/app/Http/Controllers/Guest/OrderController.php index 602d9ece..7416337d 100644 --- a/app/Http/Controllers/Guest/OrderController.php +++ b/app/Http/Controllers/Guest/OrderController.php @@ -27,14 +27,14 @@ class OrderController extends Controller if ($obj['status'] == 'succeeded') { $order = Order::where('callback_no', $obj['source']['id'])->first(); if (!$order) { - die('ERROR'); + abort(500, 'ERROR'); } if ($order->status !== 0) { die('SUCCESS'); } $order->status = 1; if (!$order->save()) { - die('ERROR'); + abort(500, 'ERROR'); } die('SUCCESS'); }