no message

back_recharge
zhangshanxue 2020-10-21 16:23:07 +08:00
parent 19d6490be2
commit 426cd852de
1 changed files with 4 additions and 4 deletions

View File

@ -144,11 +144,11 @@ public class BuyGoodsLogic {
double priceTemp =sRechargeCommodityConfig.getPrice();
int cfgType = SSpecialConfig.getIntegerValue(SSpecialConfig.EXCHANGE_FORCE_TYPE);
double price = priceTemp==0?0:SExchangeRate.doubleIntegerHashMap.get(cfgType).get((int)priceTemp);
if(amount!=-999&&MathUtils.doubleEquals(amount,price*10000)){
if(amount!=-999&&MathUtils.doubleEquals(amount,price)){
LOGGER.error("金额不对the uid={},the goodId={}, amount={},real={}", uid, goodsId, amount,price);
// resultRes.setResultCode(0);
// resultRes.setResultMsg("前后端金额不对"+amount+"realMoney = " + String.valueOf(price));
// return resultRes;
resultRes.setResultCode(0);
resultRes.setResultMsg("前后端金额不对"+amount+"realMoney = " + String.valueOf(price));
return resultRes;
}
RechargeInfo rechargeInfo = user.getPlayerInfoManager().getRechargeInfo();
Map<Integer, Integer> buyGoodsTimes = rechargeInfo.getBuyGoodsTimes();