支付中心服不做金额校验,因为不兼容多币种

main
grimm 2025-04-16 23:52:37 +08:00
parent 6d4d2ec01d
commit 456f5fd3eb
1 changed files with 10 additions and 10 deletions

View File

@ -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;