mirror of
https://github.com/v2board/v2board.git
synced 2025-01-10 16:19:10 +08:00
update: reset package
This commit is contained in:
parent
763efef9df
commit
3fdd6ac30c
@ -94,12 +94,8 @@ class OrderController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($request->input('period') === 'reset_price') {
|
if ($request->input('period') === 'reset_price') {
|
||||||
if (!$user->plan_id || $user->expired_at < time() || $user->expired_at !== NULL) {
|
if (!$userService->isAvailable($user) || $plan->id !== $user->plan_id) {
|
||||||
abort(500, __('Subscription has expired or no active subscription, unable to purchase Data Reset Package'));
|
abort(500, __('Subscription has expired or no active subscription, unable to purchase Data Reset Package'));
|
||||||
} else {
|
|
||||||
if ($user->plan_id !== $plan->id) {
|
|
||||||
abort(500, __('This subscription reset package does not apply to your subscription'));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
public/theme/v2board/assets/umi.js
vendored
2
public/theme/v2board/assets/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user