Browse Source

update order change process

Tokumeikoi 5 years ago
parent
commit
2b69e83132
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Http/Controllers/User/OrderController.php

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

@@ -75,6 +75,7 @@ class OrderController extends Controller
     private function getSurplusValue(User $user)
     {
         $plan = Plan::find($user->plan_id);
+        $dayPrice = 0;
         if ($plan->month_price) {
             $dayPrice = $plan->month_price / 30;
         } else if ($plan->quarter_price) {