【更新】更新IpAddressUtil说明

This commit is contained in:
徐玉祥 2021-05-26 09:53:27 +08:00
parent 210cd10002
commit 50c232bdc3

View File

@ -40,7 +40,8 @@ import javax.servlet.http.HttpServletRequest;
import java.util.List;
/**
* 根据ip地址定位工具类使用阿里云定位api
* 根据ip地址定位工具类使用阿里云定位api如使用本接口仅需使用以下地址购买接口然后替换sys_config表中定位appCode为你自己的即可
* 接口购买地址https://market.aliyun.com/products/57002003/cmapi021970.html
*
* @author xuyuxiang
* @date 2020/3/16 11:25
@ -100,7 +101,8 @@ public class IpAddressUtil {
}
} catch (Exception e) {
resultJson = SymbolConstant.DASH;
log.error(">>> 根据ip定位异常请求号为{},具体信息为:{}", RequestNoContext.get(), e.getMessage());
//注释掉此log以免频繁打印可自行开启
//log.error(">>> 根据ip定位异常请求号为{},具体信息为:{}", RequestNoContext.get(), e.getMessage());
}
return resultJson;
}