mirror of
https://github.com/v2board/v2board.git
synced 2025-02-10 23:49:12 +08:00
add onetime plan
This commit is contained in:
parent
3b9e9cbe7f
commit
0d2b8bc976
@ -187,7 +187,7 @@ class OrderController extends Controller
|
|||||||
$order->total_amount = $order->total_amount - $order->discount_amount;
|
$order->total_amount = $order->total_amount - $order->discount_amount;
|
||||||
// discount end
|
// discount end
|
||||||
// renew and change subscribe process
|
// renew and change subscribe process
|
||||||
if ($user->expired_at > time() && $order->plan_id !== $user->plan_id) {
|
if ($order->plan_id !== $user->plan_id) {
|
||||||
if (!(int)config('v2board.plan_change_enable', 1)) abort(500, '目前不允许更改订阅,请联系管理员');
|
if (!(int)config('v2board.plan_change_enable', 1)) abort(500, '目前不允许更改订阅,请联系管理员');
|
||||||
$order->type = 3;
|
$order->type = 3;
|
||||||
$order->surplus_amount = $this->getSurplusValue($user);
|
$order->surplus_amount = $this->getSurplusValue($user);
|
||||||
|
Loading…
Reference in New Issue
Block a user