mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
修复UserInfo获取country问题
This commit is contained in:
parent
aab5ba5098
commit
f7a8c64f52
@ -2,7 +2,7 @@
|
||||
# 🚀Changelog
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
# 5.8.21(2023-07-18)
|
||||
# 5.8.21(2023-07-19)
|
||||
|
||||
### 🐣新特性
|
||||
* 【core 】 list 为空时,CollUtil.max等返回null而非异常(pr#1027@Gitee)
|
||||
@ -25,6 +25,7 @@
|
||||
* 【extra 】 修复CompressUtil.createArchiver 将文件压缩为tgz时文件名规则无效问题(issue#I7LLL7@Gitee)
|
||||
* 【core 】 修复脱敏银行卡号长度bug(pr#3210@Github)
|
||||
* 【jwt 】 修复JWTSignerUtil中ES256签名不符合规范问题(issue#3205@Github)
|
||||
* 【core 】 修复UserInfo获取country问题(issue#I7MCKW@Gitee)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
# 5.8.20(2023-06-16)
|
||||
|
@ -28,7 +28,7 @@ public class UserInfo implements Serializable{
|
||||
// JDK1.4 {@code user.country},JDK1.2 {@code user.region}
|
||||
String userCountry = SystemUtil.get("user.country", false);
|
||||
if(null == userCountry){
|
||||
userCountry = SystemUtil.get("user.country", false);
|
||||
userCountry = SystemUtil.get("user.region", false);
|
||||
}
|
||||
USER_COUNTRY = userCountry;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user