打开校验开关

back_recharge
wangyuan 2019-04-29 16:46:40 +08:00
parent ac596f4612
commit 4b86edcecb
2 changed files with 6 additions and 3 deletions

View File

@ -120,6 +120,10 @@ public class Equip extends MongoBase {
for(Map.Entry<Integer,Integer> item : result.entrySet()){
int propertyId = item.getKey();
int value = item.getValue();
if(propertyValueByIdMap.containsKey(propertyId)){
propertyValueByIdMap.put(propertyId,propertyValueByIdMap.get(propertyId)+value);
continue;
}
if(secondValueByIdMap.containsKey(propertyId)){
secondValueByIdMap.put(propertyId,secondValueByIdMap.get(propertyId)+value);
}else{

View File

@ -250,9 +250,8 @@ public class WorkShopLogic {
User user = UserManager.getUser(uid);
SWorkShopEquipmentConfig sWorkShopEquipmentConfig = SWorkShopEquipmentConfig.getsWorkShopEquipmentConfigMap().get(equipTid);
if(!checkIsUnlock(GlobalsDef.WORK_CREATE_TYPE,sWorkShopEquipmentConfig.getType(),user.getWorkShopController(),sWorkShopEquipmentConfig.getOpenRules())){
// MessageUtil.sendErrorResponse(session,0,MessageTypeProto.MessageType.WORKSHOP_FOUNDATION_RESPONSE_VALUE,"未开");
// return;
LOGGER.error("不匹配");
MessageUtil.sendErrorResponse(session,0,MessageTypeProto.MessageType.WORKSHOP_FOUNDATION_RESPONSE_VALUE,"未开");
return
}
int runesNum = sWorkShopEquipmentConfig.getRunesNum();
int[][] specialRunes = sWorkShopEquipmentConfig.getSpecialRunes();