mirror of
https://github.com/v2board/v2board.git
synced 2025-01-25 23:49:09 +08:00
fix: expired buy reset issue
This commit is contained in:
parent
d654e01f95
commit
ebec80a75c
@ -87,15 +87,12 @@ class OrderController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($plan[$request->input('cycle')] === NULL) {
|
if ($plan[$request->input('cycle')] === NULL) {
|
||||||
if ($request->input('cycle') === 'reset_price') {
|
|
||||||
abort(500, '该订阅当前不支持重置流量');
|
|
||||||
}
|
|
||||||
abort(500, '该订阅周期无法进行购买,请选择其他周期');
|
abort(500, '该订阅周期无法进行购买,请选择其他周期');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->input('cycle') === 'reset_price') {
|
if ($request->input('cycle') === 'reset_price') {
|
||||||
if (($user->expired_at <= time() || $user->expired_at !== NULL) && !$user->plan_id) {
|
if ($user->expired_at <= time() || !$user->plan_id) {
|
||||||
abort(500, '当前无法购买流量重置包');
|
abort(500, '订阅已过期或无有效订阅,无法购买重置包');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user