generated from root/miduo_server
支付中心服不做金额校验,因为不兼容多币种
parent
6d4d2ec01d
commit
456f5fd3eb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue