Update Order.php

This commit is contained in:
邹景立 2021-02-24 15:59:58 +08:00
parent b55c13ebce
commit 09ca9769d8

View File

@ -152,7 +152,7 @@ class Order extends Auth
$order['amount_reduct'] = $order['amount_goods'];
}
// 统计订单金额
$order['amount_real'] = $order['discount_amount'] - $order['amount_reduct'];
$order['amount_real'] = $order['amount_discount'] - $order['amount_reduct'];
$order['amount_total'] = $order['amount_goods'];
// 写入商品数据
$this->app->db->transaction(function () use ($order, $items) {