|
|
@ -1,5 +1,6 @@
|
|
|
|
package cn.hippo4j.config.service.handler;
|
|
|
|
package cn.hippo4j.config.service.handler;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hippo4j.common.toolkit.StringUtil;
|
|
|
|
import cn.hippo4j.common.toolkit.UserContext;
|
|
|
|
import cn.hippo4j.common.toolkit.UserContext;
|
|
|
|
import cn.hippo4j.tools.logrecord.model.Operator;
|
|
|
|
import cn.hippo4j.tools.logrecord.model.Operator;
|
|
|
|
import cn.hippo4j.tools.logrecord.service.OperatorGetService;
|
|
|
|
import cn.hippo4j.tools.logrecord.service.OperatorGetService;
|
|
|
@ -16,7 +17,9 @@ public class CustomOperatorGetServiceImpl implements OperatorGetService {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Operator getUser() {
|
|
|
|
public Operator getUser() {
|
|
|
|
return new Operator(UserContext.getUserName());
|
|
|
|
String userName = UserContext.getUserName();
|
|
|
|
|
|
|
|
userName = StringUtil.isEmpty(userName) ? "-" : userName;
|
|
|
|
|
|
|
|
return new Operator(userName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|