generated from root/miduo_server
去掉支付金额校验限制
parent
97f57f4953
commit
66b2b286af
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue