From 456f5fd3eb3fe993815ec5372f929fb9dc6a730a Mon Sep 17 00:00:00 2001 From: grimm <1769111741@qq.com> Date: Wed, 16 Apr 2025 23:52:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E4=B8=AD=E5=BF=83=E6=9C=8D?= =?UTF-8?q?=E4=B8=8D=E5=81=9A=E9=87=91=E9=A2=9D=E6=A0=A1=E9=AA=8C=EF=BC=8C?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=E4=B8=8D=E5=85=BC=E5=AE=B9=E5=A4=9A=E5=B8=81?= =?UTF-8?q?=E7=A7=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jmfy/handler/PayHandler.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/jmfy/handler/PayHandler.java b/src/main/java/com/jmfy/handler/PayHandler.java index 4bdf84d..1bb342e 100644 --- a/src/main/java/com/jmfy/handler/PayHandler.java +++ b/src/main/java/com/jmfy/handler/PayHandler.java @@ -142,16 +142,16 @@ public class PayHandler { // return -4; // } - if(amount != 0) { - //判断提交金额和支付金额是否一致 - if (payVo.getMoney() != amount) { - LOGGER.error("订单号:" + orderId + " 提交的金额和支付的金额不一致 提交的金额(单位分):" + payVo.getMoney() + " 支付的金额:" + amount); - return -5; - } - }else { - LOGGER.error("订单号:" + orderId + " 提交的金额和支付的金额不一致,支付金额不能为0, 提交的金额(单位分):" + payVo.getMoney() + " 支付的金额:" + amount); - return -6; - } +// if(amount != 0) { +// //判断提交金额和支付金额是否一致 +// if (payVo.getMoney() != amount) { +// LOGGER.error("订单号:" + orderId + " 提交的金额和支付的金额不一致 提交的金额(单位分):" + payVo.getMoney() + " 支付的金额:" + amount); +// return -5; +// } +// }else { +// LOGGER.error("订单号:" + orderId + " 提交的金额和支付的金额不一致,支付金额不能为0, 提交的金额(单位分):" + payVo.getMoney() + " 支付的金额:" + amount); +// return -6; +// } if (payVo.getStatus() == 1) { return 1;