back_recharge
wangyuan 2019-06-21 18:32:43 +08:00
parent c66f849854
commit ea9b1eacca
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ public class WorkShopLogic {
return;
}
int[] openRules = sWorkShopTechnology.getOpenRules();
if(openRules!=null){
if(openRules!=null&&openRules.length>0){
int preTechId = openRules[0];
int preTechLevel = openRules[1];
SWorkShopTechnology preSWorkShopTechnology = SWorkShopTechnology.getsWorkTechMapByTechIdAndLevel(techId, oldLevl);
@ -75,7 +75,7 @@ public class WorkShopLogic {
MessageUtil.sendMessage(iSession,1, msgId,null,true);
}
public void workShopTechnogyReset(ISession session,int profession) throws Exception {
public void workShopTechnoggityReset(ISession session,int profession) throws Exception {
int uid = session.getUid();
int msgId = MessageTypeProto.MessageType.WORKSHOP_TECHNOLOGY_RESET_RESPONSE_VALUE;
User user = UserManager.getUser(uid);