|
|
|
@@ -47,6 +47,8 @@ public class HKVersion implements IHardwareEquipment { |
|
|
|
this.info = info; |
|
|
|
if(deploy){ |
|
|
|
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 |
|
|
|
public int setCardTemplate(CardTemplateInfo cardTemplateInfo) { |
|
|
|
this.Login_V40(this.info.getIp(),this.info.getPort(),this.info.getUsername(),this.info.getPassword()); |
|
|
|
if(lUserID == -1){ |
|
|
|
return -1; |
|
|
|
} |
|
|
|
@@ -235,7 +236,6 @@ public class HKVersion implements IHardwareEquipment { |
|
|
|
|
|
|
|
@Override |
|
|
|
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) { |
|
|
|
try { |
|
|
|
if(lUserID == -1){ |
|
|
|
@@ -252,7 +252,6 @@ public class HKVersion implements IHardwareEquipment { |
|
|
|
|
|
|
|
@Override |
|
|
|
public UserFaceInfo searchUserInfo(String employeeNo) { |
|
|
|
this.Login_V40(this.info.getIp(), this.info.getPort(), this.info.getUsername(), this.info.getPassword()); |
|
|
|
UserFaceInfo userFaceInfo = null; |
|
|
|
String result = UserManage.searchUserInfo(lUserID, employeeNo); |
|
|
|
if(result == null){ |
|
|
|
|