mirror of
https://github.com/v2board/v2board.git
synced 2025-01-25 23:49:09 +08:00
fix order renew
This commit is contained in:
parent
c817710556
commit
e07b97b14e
@ -85,11 +85,11 @@ class OrderController extends Controller
|
||||
abort(500, '该订阅不存在');
|
||||
}
|
||||
|
||||
if (!$plan->show) {
|
||||
if (!$plan->show && !$plan->renew) {
|
||||
abort(500, '该订阅已售罄');
|
||||
}
|
||||
|
||||
if (!$plan->renew) {
|
||||
if (!$plan->renew && $user->plan_id == $plan->id) {
|
||||
abort(500, '该订阅无法续费,请更换其他订阅');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user