修改金额核对值对象,防止漏单

This commit is contained in:
技术老胡 2024-12-28 16:05:36 +08:00
parent 2c1ece3eb2
commit e65c0e9173

View File

@ -161,7 +161,7 @@ class PayController
// 支付渠道核对 // 支付渠道核对
$is_channel = $cids[$order->cid] == $new_order['channel']; $is_channel = $cids[$order->cid] == $new_order['channel'];
// 金额核对 // 金额核对
$is_money = $order->money == $new_order['price']; $is_money = $order->really_price == $new_order['price'];
// 订单核对 // 订单核对
if ($is_payway && $is_channel && $is_money) { if ($is_payway && $is_channel && $is_money) {
$res = $this->updateOrderState($order, $new_order['order_no']); $res = $this->updateOrderState($order, $new_order['order_no']);