Browse Source

修复定位bug

徐玉祥 4 years ago
parent
commit
8393fb7b90

+ 1 - 0
guns-base-support/guns-core/src/main/java/cn/stylefeng/guns/core/util/IpAddressUtil.java

@ -114,6 +114,7 @@ public class IpAddressUtil {
                resultJson = String.join("", (List<String>) JSONPath.read(resultJson, path));
                resultJson = String.join("", (List<String>) JSONPath.read(resultJson, path));
            }
            }
        } catch (Exception e) {
        } catch (Exception e) {
            resultJson = SymbolConstant.DASH;
            log.error(">>> 根据ip定位异常,请求号为:{},具体信息为:{}", RequestNoContext.get(), e.getMessage());
            log.error(">>> 根据ip定位异常,请求号为:{},具体信息为:{}", RequestNoContext.get(), e.getMessage());
        }
        }
        return resultJson;
        return resultJson;