mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
fix: expired buy reset issue
This commit is contained in:
parent
be18727de1
commit
d654e01f95
@ -94,8 +94,9 @@ class OrderController extends Controller
|
||||
}
|
||||
|
||||
if ($request->input('cycle') === 'reset_price') {
|
||||
if (!($user->expired_at > time() || $user->expired_at === NULL) && !$user->plan_id)
|
||||
abort(500, '当前无法购买流量重置包');
|
||||
if (($user->expired_at <= time() || $user->expired_at !== NULL) && !$user->plan_id) {
|
||||
abort(500, '当前无法购买流量重置包');
|
||||
}
|
||||
}
|
||||
|
||||
DB::beginTransaction();
|
||||
|
Loading…
Reference in New Issue
Block a user