mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
fix: onetime reset package
This commit is contained in:
parent
136c5cf9e9
commit
8a44ccb3fc
@ -93,12 +93,9 @@ class OrderController extends Controller
|
|||||||
abort(500, '该订阅周期无法进行购买,请选择其他周期');
|
abort(500, '该订阅周期无法进行购买,请选择其他周期');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->input('cycle') === 'reset_price' && !$user->plan_id) {
|
if ($request->input('cycle') === 'reset_price') {
|
||||||
abort(500, '必须存在订阅才可以购买流量重置包');
|
if (!($user->expired_at > time() || $user->expired_at === NULL) && !$user->plan_id)
|
||||||
}
|
abort(500, '当前无法购买流量重置包');
|
||||||
|
|
||||||
if ($request->input('cycle') === 'reset_price' && $user->expired_at <= time()) {
|
|
||||||
abort(500, '当前订阅已过期,无法购买重置包');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
|
Loading…
Reference in New Issue
Block a user