修复问题

This commit is contained in:
wenc000 2020-05-21 16:02:55 +08:00
parent 189eac4fea
commit ab41103a24
2 changed files with 12 additions and 3 deletions

View File

@ -43,7 +43,11 @@ public abstract class AbstractService {
*/
protected void setSaveInfo(Map<String, Object> params) {
UserInfoBO userInfoBO = securityComponent.getCurrentUser();
setSave(userInfoBO.getUserId(), params);
if (userInfoBO != null) {
setSave(userInfoBO.getUserId(), params);
} else {
setSave("1", params);
}
}
/**
@ -89,7 +93,11 @@ public abstract class AbstractService {
*/
protected void setUpdateInfo(Map<String, Object> params) {
UserInfoBO userInfoBO = securityComponent.getCurrentUser();
setUpdate(userInfoBO.getUserId(), params);
if (userInfoBO != null) {
setUpdate(userInfoBO.getUserId(), params);
} else {
setUpdateInfo("1", params);
}
}
/**

View File

@ -40,7 +40,8 @@ public class LicenseTest {
// String mac = AddressUtil.getMacAddress();
// System.out.println(mac);
// 环保统一用户FA-16-3E-17-20-7D
String license = License.getLicense("2020-05-08", "10000", "FA-16-3E-17-20-7D", "_System_License_");
// 包头体育局00-16-3E-00-F3-CE
String license = License.getLicense("2020-05-14", "100", "00-16-3E-00-F3-CE", "_System_License_");
System.out.println(license);
}