进阶编队校验修改
parent
9c658b6acd
commit
8c917c414b
|
@ -860,6 +860,15 @@ public class HeroLogic{
|
|||
if(consumeMaterialInfoByPosition.size()!=consumeMaterialsList.size()){
|
||||
throw new ErrorCodeException(ErrorCode.HERO_UN_MATCH);
|
||||
}
|
||||
//判断编队
|
||||
for(HeroInfoProto.ConsumeMaterial consumeMaterial1 : consumeMaterialsList) {
|
||||
List<String> heroIdsList = consumeMaterial1.getHeroIdsList();
|
||||
ErrorCode err = ItemLogic.getInstance().checkHeroResolve(heroIdsList, user);
|
||||
if(null!=err){
|
||||
throw new ErrorCodeException(err);
|
||||
}
|
||||
}
|
||||
|
||||
for(HeroInfoProto.ConsumeMaterial consumeMaterial1 : consumeMaterialsList){
|
||||
int position = consumeMaterial1.getPosition();
|
||||
SCHero.ConsumeMaterialInfo consumeMaterialInfo = consumeMaterialInfoByPosition.get(position);
|
||||
|
|
Loading…
Reference in New Issue