灵动sdk接入
parent
79a223b16e
commit
e5cf5a39c4
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue