From a0b14029cdc5bbc0ccef4ba2fb319d831cc267e6 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Sun, 12 Jun 2022 21:48:31 +0800 Subject: [PATCH] update: fix reset package --- app/Http/Controllers/User/OrderController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/User/OrderController.php b/app/Http/Controllers/User/OrderController.php index e38099b8..94625726 100755 --- a/app/Http/Controllers/User/OrderController.php +++ b/app/Http/Controllers/User/OrderController.php @@ -90,7 +90,7 @@ class OrderController extends Controller if (!$user->plan_id) { abort(500, __('Subscription has expired or no active subscription, unable to purchase Data Reset Package')); } else { - if ($user->plan_id !== $request->input('plan_id')) { + if ($user->plan_id !== $plan->id) { abort(500, __('This subscription reset package does not apply to your subscription')); } }