mirror of
https://github.com/v2board/v2board.git
synced 2025-02-25 14:50:26 +08:00
update
This commit is contained in:
parent
a2c674f00c
commit
bc5ddbf40a
@ -190,7 +190,7 @@ class OrderController extends Controller
|
|||||||
// discount end
|
// discount end
|
||||||
// renew and change subscribe process
|
// renew and change subscribe process
|
||||||
if ($user->plan_id !== NULL && $order->plan_id !== $user->plan_id) {
|
if ($user->plan_id !== NULL && $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);
|
||||||
if ($order->surplus_amount >= $order->total_amount) {
|
if ($order->surplus_amount >= $order->total_amount) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user