【ID1005921】【月卡优化】累计充值30/98分别赠送月卡/豪华月卡-后端
parent
252da3274f
commit
91e20d3e4e
|
@ -131,15 +131,14 @@ public class BuyGoodsLogic {
|
||||||
|
|
||||||
|
|
||||||
if(sRechargeCommodityConfig.getAccumulativeRecharge() == 1){
|
if(sRechargeCommodityConfig.getAccumulativeRecharge() == 1){
|
||||||
int totle=price+rechargeInfo.getSaveAmt();
|
|
||||||
int monthline = STableManager.getConfig(SMonthcardConfig.class).get(Global.MONTHCARDID).getPrice();
|
int monthline = STableManager.getConfig(SMonthcardConfig.class).get(Global.MONTHCARDID).getPrice();
|
||||||
int lmonthline = STableManager.getConfig(SMonthcardConfig.class).get(Global.LMONTHCARDID).getPrice();
|
int lmonthline = STableManager.getConfig(SMonthcardConfig.class).get(Global.LMONTHCARDID).getPrice();
|
||||||
boolean sendneed =false;
|
boolean sendneed =false;
|
||||||
if(rechargeInfo.getMonthSaveAmt()<monthline&&totle>=monthline){
|
if(rechargeInfo.getMonthSaveAmt()<monthline&&(price+rechargeInfo.getMonthSaveAmt())>=monthline){
|
||||||
sendneed=true;
|
sendneed=true;
|
||||||
user.getPlayerInfoManager().getMonthCard().put(Global.MONTHCARDID, (int) (System.currentTimeMillis() / 1000));
|
user.getPlayerInfoManager().getMonthCard().put(Global.MONTHCARDID, (int) (System.currentTimeMillis() / 1000));
|
||||||
}
|
}
|
||||||
if(rechargeInfo.getSmonthSaveAmt()<lmonthline&&totle>=lmonthline){
|
if(rechargeInfo.getSmonthSaveAmt()<lmonthline&&(price+rechargeInfo.getSmonthSaveAmt())>=lmonthline){
|
||||||
sendneed=true;
|
sendneed=true;
|
||||||
user.getPlayerInfoManager().getMonthCard().put(Global.LMONTHCARDID, (int) (System.currentTimeMillis() / 1000));
|
user.getPlayerInfoManager().getMonthCard().put(Global.LMONTHCARDID, (int) (System.currentTimeMillis() / 1000));
|
||||||
}
|
}
|
||||||
|
@ -212,6 +211,7 @@ public class BuyGoodsLogic {
|
||||||
}
|
}
|
||||||
rechargeInfo.setSaveAmt(price+saveAmt);
|
rechargeInfo.setSaveAmt(price+saveAmt);
|
||||||
user.getPlayerInfoManager().addRechargedaily(price);
|
user.getPlayerInfoManager().addRechargedaily(price);
|
||||||
|
user.getPlayerInfoManager().getMonthCard();
|
||||||
rechargeInfo.setMonthSaveAmt(price+rechargeInfo.getMonthSaveAmt());
|
rechargeInfo.setMonthSaveAmt(price+rechargeInfo.getMonthSaveAmt());
|
||||||
rechargeInfo.setSmonthSaveAmt(price+rechargeInfo.getSmonthSaveAmt());
|
rechargeInfo.setSmonthSaveAmt(price+rechargeInfo.getSmonthSaveAmt());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue