From b4e5eb26e3e56f1a5f414cd1131a264a131012b1 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Jan 2020 17:57:06 +0800 Subject: [PATCH] update --- app/Http/Controllers/OrderController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/OrderController.php b/app/Http/Controllers/OrderController.php index ca4513fb..ec5ca361 100755 --- a/app/Http/Controllers/OrderController.php +++ b/app/Http/Controllers/OrderController.php @@ -118,7 +118,7 @@ class OrderController extends Controller case 1: $order->discount_amount = $order->total_amount - $coupon->value; case 1: $order->discount_amount = $order->total_amount * ($coupon->value / 100); } - $order->amount_total = $order->amount_total - $order->discount_amount; + $order->total_amount = $order->total_amount - $order->discount_amount; } // free process if ($order->total_amount <= 0) {