mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update order change process
This commit is contained in:
parent
cab7cc9d19
commit
9ae3994705
@ -140,7 +140,7 @@ class OrderController extends Controller
|
||||
if (!(int)config('v2board.plan_change_enable', 1)) abort(500, '目前不允许更改订阅,请联系管理员');
|
||||
$order->type = 3;
|
||||
$order->diff_amount = $this->getDiffPrice($user, $plan);
|
||||
$order->total_amount = $order->diff_amount;
|
||||
$order->total_amount = $order->total_amount + $order->diff_amount;
|
||||
} else if ($user->expired_at > time() && $order->plan_id == $user->plan_id) {
|
||||
$order->type = 2;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user