Tokumeikoi 5 年之前
父节点
当前提交
1be7151b6c
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      app/Http/Controllers/User/OrderController.php

+ 0 - 4
app/Http/Controllers/User/OrderController.php

@@ -98,10 +98,6 @@ class OrderController extends Controller
     private function getSurplusValueByCycle(User $user, Plan $plan)
     {
         $price = 0;
-        $sec = 31536000;
-        if (!((int)date('Y') % 4)) {
-            $sec = 31622400;
-        }
         if ($plan->month_price) {
             $price = $plan->month_price / (31536000 / 12);
         } else if ($plan->quarter_price) {