From 2b69e831320bdfab00d9fb7932526abedf6cd21c Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Mon, 17 Feb 2020 12:25:19 +0800 Subject: [PATCH] update order change process --- app/Http/Controllers/User/OrderController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/User/OrderController.php b/app/Http/Controllers/User/OrderController.php index 65badf81..642f917a 100755 --- a/app/Http/Controllers/User/OrderController.php +++ b/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) {