mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update
This commit is contained in:
parent
914bcd28c6
commit
27faed785d
@ -74,7 +74,7 @@ class OrderController extends Controller
|
|||||||
if ($user->expired_at > time() && $order->plan_id !== $user->plan_id) {
|
if ($user->expired_at > time() && $order->plan_id !== $user->plan_id) {
|
||||||
$order->type = 3;
|
$order->type = 3;
|
||||||
if (!(int)config('v2board.plan_is_update', 1)) abort(500, '目前不允许更改订阅,请联系管理员');
|
if (!(int)config('v2board.plan_is_update', 1)) abort(500, '目前不允许更改订阅,请联系管理员');
|
||||||
$order->total_amount = $order->total_amount + ((($user->expired_at - strtotime(date('Y-m-d'))) / 86400) * config('v2board.plan_update_fee', 0.5) * 100);
|
$order->total_amount = $order->total_amount + ((($user->expired_at - time()) / 86400) * config('v2board.plan_update_fee', 0.5) * 100);
|
||||||
} else if ($user->expired_at > time() && $order->plan_id == $user->plan_id) {
|
} else if ($user->expired_at > time() && $order->plan_id == $user->plan_id) {
|
||||||
$order->type = 2;
|
$order->type = 2;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user