新礼包五星最后修改
parent
76abb2383a
commit
19d8c11012
|
@ -679,8 +679,8 @@ public class BuyGoodsNewLogic {
|
|||
MessageUtil.sendIndicationMessage(session, 1, MessageTypeProto.MessageType.ALL_GIFTGOODS_INDICATION_VALUE, goodsBuild, true);
|
||||
if(popup != 0){
|
||||
if(isFiveStarBag(popup)){
|
||||
if(info.getTEMP_LIMIT()>0){
|
||||
info.setTEMP_LIMIT(info.getTEMP_LIMIT() - 1);
|
||||
if(info.getTEMP_LIMIT()<info.FIVESTARLIMIT){
|
||||
info.setTEMP_LIMIT(info.getTEMP_LIMIT() + 1);
|
||||
PlayerInfoProto.PushWelfareResponse pushWelfareResponse = PlayerInfoProto.PushWelfareResponse.newBuilder().addId(popup).build();
|
||||
MessageUtil.sendIndicationMessage(session, 1, MessageTypeProto.MessageType.PUSH_WELFARE_RESPONSE.getNumber(), pushWelfareResponse, true);
|
||||
}
|
||||
|
@ -807,7 +807,7 @@ public class BuyGoodsNewLogic {
|
|||
return;
|
||||
}
|
||||
info.setLastRefreshTime(System.currentTimeMillis());
|
||||
info.setTEMP_LIMIT(2);
|
||||
info.setTEMP_LIMIT(0);
|
||||
}
|
||||
|
||||
//是否属于五星成长礼
|
||||
|
@ -822,12 +822,12 @@ public class BuyGoodsNewLogic {
|
|||
NewRechargeInfo info = user.getPlayerInfoManager().getNewRechargeInfo();
|
||||
if(isFiveStarBag(bagId) && info.getPushMap().get(bagId) != null){
|
||||
AbstractWelfareBag bag = info.getPushMap().get(bagId);
|
||||
bag.setLimit((bag.getLimit()+num)>info.getTEMP_LIMIT()?info.getTEMP_LIMIT():(bag.getLimit()+num));
|
||||
bag.setLimit((bag.getLimit()+num)>info.FIVESTARLIMIT?info.FIVESTARLIMIT:(bag.getLimit()+num));
|
||||
}else{
|
||||
SRechargeCommodityNewConfig config = SRechargeCommodityNewConfig.getConfigById(bagId);
|
||||
AbstractWelfareBag bag = initUnitWF(user,config);
|
||||
if(num != 0 && num > info.getTEMP_LIMIT()){
|
||||
bag.setLimit(info.getTEMP_LIMIT());
|
||||
if(num != 0 && num > info.FIVESTARLIMIT){
|
||||
bag.setLimit(info.FIVESTARLIMIT);
|
||||
}else{
|
||||
bag.setLimit(num);
|
||||
}
|
||||
|
|
|
@ -30,7 +30,8 @@ public class NewRechargeInfo extends MongoBase {
|
|||
private long nextPushTime; //上次推送时间
|
||||
|
||||
private long lastRefreshTime;
|
||||
private int TEMP_LIMIT = 2;//临时五星成长礼每天最多两次
|
||||
private int TEMP_LIMIT = 0;
|
||||
public static int FIVESTARLIMIT = 2;//临时五星成长礼每天最多两次
|
||||
|
||||
|
||||
public boolean checkOneGoodsIsOverTimeByPrivilege(int privilegeId){
|
||||
|
|
Loading…
Reference in New Issue