fix bug and add Base58

This commit is contained in:
Looly 2022-02-25 00:40:46 +08:00
parent 8fdc9f443f
commit c3bf175b2b
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# 🚀Changelog
-------------------------------------------------------------------------------------------------------------
# 5.7.22 (2022-02-24)
# 5.7.22 (2022-02-25)
### 🐣新特性
* 【poi 】 ExcelUtil.readBySax增加对POI-5.2.0的兼容性issue#I4TJF4@gitee
@ -14,6 +14,7 @@
* 【core 】 FileUtil增加getTotalLines方法
* 【db 】 MetaUtil增加getTableMeta重载issue#2157@Github
* 【http 】 增加HttpGlobalConfig.setDecodeUrlissue#I4U8YQ@Gitee
* 【core 】 增加Base58pr#2162@Github
### 🐞Bug修复
* 【cache 】 修复ReentrantCache.toString方法线程不安全问题issue#2140@Github
@ -21,6 +22,7 @@
* 【crypto 】 修复SM2.getD前导0问题pr#2149@Github
* 【core 】 修复ChineseDate在1970年之前农历差一天问题issue#I4UTPK@Gitee
* 【core 】 修复CoordinateUtil精准问题及转换bugpr#551@Gitee
* 【json 】 修复JSONObject解析XML后没有返回的bugissue#2160@Github
-------------------------------------------------------------------------------------------------------------
# 5.7.21 (2022-02-14)

View File

@ -719,6 +719,7 @@ public class JSONObject implements JSON, JSONGetter<String>, Map<String, Object>
if (StrUtil.startWith(jsonStr, '<')) {
// 可能为XML
XML.toJSONObject(this, jsonStr, false);
return;
}
init(new JSONTokener(StrUtil.trim(source), this.config));
}