灵动sdk接入

zhangshanxue 2020-07-26 19:36:06 +08:00
parent 79a223b16e
commit e5cf5a39c4
1 changed files with 8 additions and 8 deletions

View File

@ -92,14 +92,14 @@ public class BuyGoodsLogic {
//check money //check money
int realMoney =sRechargeCommodityConfig.getPrice(); // int realMoney =sRechargeCommodityConfig.getPrice();
if(amount!=-999&&amount!=realMoney){ // if(amount!=-999&&amount!=realMoney){
LOGGER.error("the uid={},the goodId={}, amount={},real={}", uid, goodsId, amount,realMoney); // LOGGER.error("the uid={},the goodId={}, amount={},real={}", uid, goodsId, amount,realMoney);
resultRes.setResultCode(0); // resultRes.setResultCode(0);
resultRes.setResultMsg("前后端金额不对"+amount+"realMoney = " + realMoney); // resultRes.setResultMsg("前后端金额不对"+amount+"realMoney = " + realMoney);
return resultRes; // return resultRes;
//
} // }
RechargeInfo rechargeInfo = user.getPlayerInfoManager().getRechargeInfo(); RechargeInfo rechargeInfo = user.getPlayerInfoManager().getRechargeInfo();
Map<Integer, Integer> buyGoodsTimes = rechargeInfo.getBuyGoodsTimes(); Map<Integer, Integer> buyGoodsTimes = rechargeInfo.getBuyGoodsTimes();
Integer buyCount = buyGoodsTimes.get(goodsId); Integer buyCount = buyGoodsTimes.get(goodsId);