Task【ID1005229】【特权调整】

back_recharge
zhangshanxue 2019-12-12 13:35:58 +08:00
parent efb20d445e
commit 926b00a691
2 changed files with 7 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import com.ljsd.jieling.handler.BaseHandler;
import com.ljsd.jieling.logic.dao.PlayerManager;
import com.ljsd.jieling.logic.dao.UserManager;
import com.ljsd.jieling.logic.dao.root.User;
import com.ljsd.jieling.logic.store.GiftGoodsType;
import com.ljsd.jieling.network.session.ISession;
import com.ljsd.jieling.protocols.CommonProto;
import com.ljsd.jieling.protocols.MessageTypeProto;
@ -33,6 +34,10 @@ public class VipTakeDailyHandler extends BaseHandler<PlayerInfoProto.VipTakeDily
throw new ErrorCodeException(ErrorCode.CFG_NULL);
}
if(playerInfoManager.getRechargeInfo().getBuyGoodsTimes().containsKey(GiftGoodsType.LUXURYMONTHCARD)){
throw new ErrorCodeException(ErrorCode.newDefineCode("未激活豪华月卡"));
}
if(playerInfoManager.getHadTakeDailyBoxVip() != -1 ){
throw new ErrorCodeException(ErrorCode.newDefineCode("had taked the vip daily reward"));
}

View File

@ -420,7 +420,7 @@ public class StoreLogic {
if(storeId==Global.VIPSTORID){
int vipLeve = user.getPlayerInfoManager().getVipLevel();
user.getPlayerInfoManager().getHadTakeLevelBoxVip().add(vipLeve);
user.getPlayerInfoManager().setHadTakeLevelBoxVip(vipLeve);
}
PlayerInfoProto.BuyStoreItemResponse builder = PlayerInfoProto.BuyStoreItemResponse.newBuilder().setDrop(drop).build();
@ -443,7 +443,7 @@ public class StoreLogic {
if(storeId==Global.VIPSTORID){
int vipLeve = user.getPlayerInfoManager().getVipLevel();
if(vipLeve<(sStoreConfig.getStoreId()-1)){
if(vipLeve<(sStoreConfig.getSort()-1)){
return "vip leve limit";
}
// if(user.getPlayerInfoManager().getHadTakeLevelBoxVip().contains(vipLeve)){