mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-24 10:22:32 +08:00
Update Order.php
This commit is contained in:
parent
e3468b57cc
commit
f753fc08a1
@ -244,7 +244,7 @@ class Order extends Auth
|
|||||||
// 组装更新订单数据
|
// 组装更新订单数据
|
||||||
$update = ['status' => 2, 'amount_express' => $express['template_amount']];
|
$update = ['status' => 2, 'amount_express' => $express['template_amount']];
|
||||||
// 重新计算订单金额
|
// 重新计算订单金额
|
||||||
$update['amount_real'] = $order['discount_amount'] + $amount - $order['amount_reduct'];
|
$update['amount_real'] = $order['amount_discount'] + $amount - $order['amount_reduct'];
|
||||||
$update['amount_total'] = $order['amount_goods'] + $amount;
|
$update['amount_total'] = $order['amount_goods'] + $amount;
|
||||||
// 支付金额不能为零
|
// 支付金额不能为零
|
||||||
if ($update['amount_real'] <= 0) $update['amount_real'] = 0.00;
|
if ($update['amount_real'] <= 0) $update['amount_real'] = 0.00;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user