修复问题
This commit is contained in:
parent
189eac4fea
commit
ab41103a24
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user