wangliang 2 år sedan
förälder
incheckning
c16649df1f
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      themis-common/src/main/java/com/qmth/themis/common/util/IpUtil.java

+ 3 - 0
themis-common/src/main/java/com/qmth/themis/common/util/IpUtil.java

@@ -166,6 +166,9 @@ public class IpUtil {
      * @return
      */
     public static String getIpInfo(Searcher searcher, String ip) {
+        if (Objects.isNull(searcher)) {
+            searcher = getSearcher();
+        }
         String region = null;
         // 3、查询
         try {