mirror of
https://github.com/v2board/v2board.git
synced 2025-01-25 23:49:09 +08:00
update change order process
This commit is contained in:
parent
9f5be4e83a
commit
568648dc2f
@ -86,8 +86,8 @@ class OrderController extends Controller
|
|||||||
$dayPrice = $plan->year_price / 31536000;
|
$dayPrice = $plan->year_price / 31536000;
|
||||||
}
|
}
|
||||||
// exclude discount
|
// exclude discount
|
||||||
if ($user->discount) {
|
if ($user->discount && $dayPrice) {
|
||||||
$dayPrice = $dayPrice * $user->discount / 100;
|
$dayPrice = $dayPrice - ($dayPrice * $user->discount / 100);
|
||||||
}
|
}
|
||||||
$remainingDay = $user->expired_at - time();
|
$remainingDay = $user->expired_at - time();
|
||||||
return $remainingDay * $dayPrice;
|
return $remainingDay * $dayPrice;
|
||||||
|
Loading…
Reference in New Issue
Block a user