From 5f90b80e466a0234a7783f4f14b956faa02c590b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Oct 2019 17:35:41 +0800 Subject: [PATCH] update --- app/Http/Controllers/Guest/OrderController.php | 2 +- app/Models/V2rayUser.php | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100755 app/Models/V2rayUser.php diff --git a/app/Http/Controllers/Guest/OrderController.php b/app/Http/Controllers/Guest/OrderController.php index 6896ed40..602d9ece 100644 --- a/app/Http/Controllers/Guest/OrderController.php +++ b/app/Http/Controllers/Guest/OrderController.php @@ -25,7 +25,7 @@ class OrderController extends Controller $obj = $event->data->object; if ($obj['status'] == 'succeeded') { - $order = Order::where('callback_no', $obj['id'])->first(); + $order = Order::where('callback_no', $obj['source']['id'])->first(); if (!$order) { die('ERROR'); } diff --git a/app/Models/V2rayUser.php b/app/Models/V2rayUser.php deleted file mode 100755 index 45cab56e..00000000 --- a/app/Models/V2rayUser.php +++ /dev/null @@ -1,11 +0,0 @@ -