mirror of https://gitee.com/xiaonuobase/snowy
parent
e8e8f6c90b
commit
1fe2ab6dd9
|
@ -136,8 +136,13 @@ public class DevLogUtil {
|
||||||
private static DevLog genBasOpLog() {
|
private static DevLog genBasOpLog() {
|
||||||
HttpServletRequest request = CommonServletUtil.getRequest();
|
HttpServletRequest request = CommonServletUtil.getRequest();
|
||||||
String ip = CommonIpAddressUtil.getIp(request);
|
String ip = CommonIpAddressUtil.getIp(request);
|
||||||
String loginId = StpUtil.getLoginIdAsString();
|
String loginId;
|
||||||
if (ObjectUtil.isEmpty(loginId)) {
|
try {
|
||||||
|
loginId = StpUtil.getLoginIdAsString();
|
||||||
|
if (ObjectUtil.isEmpty(loginId)) {
|
||||||
|
loginId = "-1";
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
loginId = "-1";
|
loginId = "-1";
|
||||||
}
|
}
|
||||||
DevLog devLog = new DevLog();
|
DevLog devLog = new DevLog();
|
||||||
|
|
Loading…
Reference in New Issue