去掉支付金额校验限制

main
grimm 2025-06-10 19:10:01 +08:00
parent 97f57f4953
commit 66b2b286af
1 changed files with 6 additions and 6 deletions

View File

@ -1082,12 +1082,12 @@ public class BuyGoodsLogic {
double price = SExchangeRate.doubleIntegerHashMap.get(cfgType).get((int) priceTemp);
//判断支付金额与商品金额是否一致 如果使用了贬值器 priceTemp = 贬值后的价格
if(amount!=-999 && price * 100 != amount) {
LOGGER.error("支付金额与商品金额不一致 the uid={},goodId={},priceTemp={},amount={}", uid, goodsId,price,amount);
resultRes.setResultCode(0);
resultRes.setResultMsg(" 支付金额与商品金额不一致 price != amount ");
return resultRes;
}
// if(amount!=-999 && price * 100 != amount) {
// LOGGER.error("支付金额与商品金额不一致 the uid={},goodId={},priceTemp={},amount={}", uid, goodsId,price,amount);
// resultRes.setResultCode(0);
// resultRes.setResultMsg(" 支付金额与商品金额不一致 price != amount ");
// return resultRes;
// }
int type = sRechargeCommodityConfig.getType();
RechargeHandler rechargeHandler = getRechargeHandler(sRechargeCommodityConfig.getOtype());