mirror of
https://github.com/v2board/v2board.git
synced 2024-09-20 21:04:52 +08:00
update
This commit is contained in:
parent
c271647ecc
commit
64f379d99d
@ -100,6 +100,9 @@ class OrderController extends Controller
|
|||||||
{
|
{
|
||||||
$dayPrice = 0;
|
$dayPrice = 0;
|
||||||
$day = ($user->expired_at - time()) / 86400;
|
$day = ($user->expired_at - time()) / 86400;
|
||||||
|
if ($day <= 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
if ($plan->month_price) {
|
if ($plan->month_price) {
|
||||||
$dayPrice = $plan->month_price / $day;
|
$dayPrice = $plan->month_price / $day;
|
||||||
} else if ($plan->quarter_price) {
|
} else if ($plan->quarter_price) {
|
||||||
|
Loading…
Reference in New Issue
Block a user