update: fix reset package

This commit is contained in:
tokumeikoi 2022-06-12 21:48:31 +08:00
parent 0f7d787622
commit a0b14029cd

View File

@ -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'));
}
}