remove downgrade

This commit is contained in:
Tokumeikoi
2020-02-18 02:55:44 +08:00
parent f3ac8a37be
commit 153bdcaad1
4 changed files with 2 additions and 5 deletions

View File

@ -143,7 +143,6 @@ class OrderController extends Controller
$order->type = 3;
$order->surplus_amount = $this->getSurplusValue($user);
if ($order->surplus_amount >= $order->total_amount) {
if (!(int)config('v2board.plan_downgrade_enable', 1)) abort(500, '目前不允许降级订阅,请联系管理员');
$order->refund_amount = $order->surplus_amount - $order->total_amount;
$order->total_amount = 0;
} else {