tianwu.sun 9 miesięcy temu
rodzic
commit
c7e45de1ba

+ 2 - 2
src/main/java/com/bootdo/system/service/impl/SessionServiceImpl.java

@@ -46,7 +46,7 @@ public class SessionServiceImpl implements SessionService {
     @Override
     public List<UserOnline> list(HttpServletRequest request) throws Exception{
         String ip = IPUtils.getIpAddr(request);
-        log.info("SessionServiceImpl.list.ip:{0}",ip);
+        log.info("SessionServiceImpl.list.ip:" + ip);
         if (!apiAllowIp.contains(ip)) {
             throw new Exception("不允许访问");
         }
@@ -108,7 +108,7 @@ public class SessionServiceImpl implements SessionService {
     @Override
     public boolean forceLogout(String sessionId,HttpServletRequest request) throws Exception {
         String ip = IPUtils.getIpAddr(request);
-        log.info("SessionServiceImpl.forceLogout.ip:{0}",ip);
+        log.info("SessionServiceImpl.forceLogout.ip:"+ ip);
         if (!apiAllowIp.contains(ip)) {
             throw new Exception("不允许访问");
         }