mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-11-05 18:23:43 +08:00
修改金额核对值对象,防止漏单
This commit is contained in:
@@ -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']);
|
||||||
|
|||||||
Reference in New Issue
Block a user