fix maxlevel

back_recharge
wangyuan 2019-09-26 10:27:28 +08:00
parent 9067ca3e07
commit 201765fd9f
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class WorkShopLogic {
if( workShopController.getTechnologyMap().containsKey(profession) && workShopController.getTechnologyMap().get(profession).containsKey(techId)){
oldLevl = workShopController.getTechnologyMap().get(profession).get(techId);
}
SWorkShopTechnology sWorkShopTechnology = SWorkShopTechnology.getsWorkTechMapByTechIdAndLevel(techId, targetLevel);
SWorkShopTechnology sWorkShopTechnology = SWorkShopTechnology.getsWorkTechMapByTechIdAndLevel(techId, targetLevel-1);
if(sWorkShopTechnology == null || sWorkShopTechnology.getConsume().length<=0){
MessageUtil.sendErrorResponse(iSession,0,msgId,"maxLevel");
return;