打开校验开关
parent
ac596f4612
commit
4b86edcecb
|
@ -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{
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue