瀏覽代碼

修复定位bug

徐玉祥 4 年之前
父節點
當前提交
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));
            }
        } catch (Exception e) {
            resultJson = SymbolConstant.DASH;
            log.error(">>> 根据ip定位异常,请求号为:{},具体信息为:{}", RequestNoContext.get(), e.getMessage());
        }
        return resultJson;