灵动sdk接入
parent
79a223b16e
commit
e5cf5a39c4
|
@ -92,14 +92,14 @@ public class BuyGoodsLogic {
|
|||
|
||||
//check money
|
||||
|
||||
int realMoney =sRechargeCommodityConfig.getPrice();
|
||||
if(amount!=-999&&amount!=realMoney){
|
||||
LOGGER.error("the uid={},the goodId={}, amount={},real={}", uid, goodsId, amount,realMoney);
|
||||
resultRes.setResultCode(0);
|
||||
resultRes.setResultMsg("前后端金额不对"+amount+"realMoney = " + realMoney);
|
||||
return resultRes;
|
||||
|
||||
}
|
||||
// int realMoney =sRechargeCommodityConfig.getPrice();
|
||||
// if(amount!=-999&&amount!=realMoney){
|
||||
// LOGGER.error("the uid={},the goodId={}, amount={},real={}", uid, goodsId, amount,realMoney);
|
||||
// resultRes.setResultCode(0);
|
||||
// resultRes.setResultMsg("前后端金额不对"+amount+"realMoney = " + realMoney);
|
||||
// return resultRes;
|
||||
//
|
||||
// }
|
||||
RechargeInfo rechargeInfo = user.getPlayerInfoManager().getRechargeInfo();
|
||||
Map<Integer, Integer> buyGoodsTimes = rechargeInfo.getBuyGoodsTimes();
|
||||
Integer buyCount = buyGoodsTimes.get(goodsId);
|
||||
|
|
Loading…
Reference in New Issue