关卡验证
parent
063674c2f2
commit
80b61b2fb1
|
|
@ -12,6 +12,7 @@ import com.ljsd.jieling.logic.store.newRechargeInfo.rechargeHandler.RechargeHand
|
||||||
import com.ljsd.jieling.network.session.ISession;
|
import com.ljsd.jieling.network.session.ISession;
|
||||||
import com.ljsd.jieling.util.ItemUtil;
|
import com.ljsd.jieling.util.ItemUtil;
|
||||||
import config.SGMMaster;
|
import config.SGMMaster;
|
||||||
|
import config.SMainLevelConfig;
|
||||||
import config.SRechargeCommodityNewConfig;
|
import config.SRechargeCommodityNewConfig;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import rpc.protocols.MessageTypeProto;
|
import rpc.protocols.MessageTypeProto;
|
||||||
|
|
@ -85,8 +86,9 @@ public class GmBuyGoodHandler extends BaseHandler<PlayerInfoProto.GmBuyGoodReque
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2://关卡id
|
case 2://关卡id
|
||||||
int fightId = user.getMainLevelManager().getFightId();
|
SMainLevelConfig playerMain = SMainLevelConfig.fightPreMap.get(user.getMainLevelManager().getFightId());
|
||||||
if (fightId < value[1]){
|
SMainLevelConfig valueMain = SMainLevelConfig.fightPreMap.get(value[1]);
|
||||||
|
if (playerMain.getVirtureId() < valueMain.getVirtureId()){
|
||||||
throw new ErrorCodeException(ErrorCode.BEFORE_CONDITION_NOT);
|
throw new ErrorCodeException(ErrorCode.BEFORE_CONDITION_NOT);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue