| @@ -47,6 +47,8 @@ public class HKVersion implements IHardwareEquipment { | |||||
| this.info = info; | this.info = info; | ||||
| if(deploy){ | if(deploy){ | ||||
| this.alarm(info.getAlarmCallback()); | this.alarm(info.getAlarmCallback()); | ||||
| }else{ | |||||
| this.Login_V40(this.info.getIp(),this.info.getPort(),this.info.getUsername(),this.info.getPassword()); | |||||
| } | } | ||||
| } | } | ||||
| @@ -226,7 +228,6 @@ public class HKVersion implements IHardwareEquipment { | |||||
| @Override | @Override | ||||
| public int setCardTemplate(CardTemplateInfo cardTemplateInfo) { | public int setCardTemplate(CardTemplateInfo cardTemplateInfo) { | ||||
| this.Login_V40(this.info.getIp(),this.info.getPort(),this.info.getUsername(),this.info.getPassword()); | |||||
| if(lUserID == -1){ | if(lUserID == -1){ | ||||
| return -1; | return -1; | ||||
| } | } | ||||
| @@ -235,7 +236,6 @@ public class HKVersion implements IHardwareEquipment { | |||||
| @Override | @Override | ||||
| public void modifyUserInfo(List<UserFaceInfo> userFaceInfos) { | public void modifyUserInfo(List<UserFaceInfo> userFaceInfos) { | ||||
| this.Login_V40(this.info.getIp(), this.info.getPort(), this.info.getUsername(), this.info.getPassword()); | |||||
| for (UserFaceInfo userFaceInfo : userFaceInfos) { | for (UserFaceInfo userFaceInfo : userFaceInfos) { | ||||
| try { | try { | ||||
| if(lUserID == -1){ | if(lUserID == -1){ | ||||
| @@ -252,7 +252,6 @@ public class HKVersion implements IHardwareEquipment { | |||||
| @Override | @Override | ||||
| public UserFaceInfo searchUserInfo(String employeeNo) { | public UserFaceInfo searchUserInfo(String employeeNo) { | ||||
| this.Login_V40(this.info.getIp(), this.info.getPort(), this.info.getUsername(), this.info.getPassword()); | |||||
| UserFaceInfo userFaceInfo = null; | UserFaceInfo userFaceInfo = null; | ||||
| String result = UserManage.searchUserInfo(lUserID, employeeNo); | String result = UserManage.searchUserInfo(lUserID, employeeNo); | ||||
| if(result == null){ | if(result == null){ | ||||