mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
update
This commit is contained in:
parent
bb1ad02cf8
commit
1be7151b6c
@ -98,10 +98,6 @@ class OrderController extends Controller
|
|||||||
private function getSurplusValueByCycle(User $user, Plan $plan)
|
private function getSurplusValueByCycle(User $user, Plan $plan)
|
||||||
{
|
{
|
||||||
$price = 0;
|
$price = 0;
|
||||||
$sec = 31536000;
|
|
||||||
if (!((int)date('Y') % 4)) {
|
|
||||||
$sec = 31622400;
|
|
||||||
}
|
|
||||||
if ($plan->month_price) {
|
if ($plan->month_price) {
|
||||||
$price = $plan->month_price / (31536000 / 12);
|
$price = $plan->month_price / (31536000 / 12);
|
||||||
} else if ($plan->quarter_price) {
|
} else if ($plan->quarter_price) {
|
||||||
|
Loading…
Reference in New Issue
Block a user