🐛 修复 OneDrive 文件夹包含特殊符号时, 获取下一页数据 URL 中重复进行了 URL 编码的 BUG.

This commit is contained in:
zhaojun1998
2020-02-01 21:51:15 +08:00
parent 31b54a3c05
commit 37e1aa1fec

View File

@@ -1,5 +1,6 @@
package im.zhaojun.onedrive.common.service;
import cn.hutool.core.util.URLUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpUtil;
@@ -18,6 +19,7 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
import javax.annotation.Resource;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.List;
@@ -95,7 +97,7 @@ public abstract class AbstractOneDriveService {
String requestUrl;
if (nextLink != null) {
requestUrl = nextLink;
requestUrl = URLUtil.decode(nextLink);
}else if ("/".equalsIgnoreCase(fullPath) || "".equalsIgnoreCase(fullPath)) {
requestUrl = DRIVER_ROOT_URL;
} else {