From 37e1aa1fec5875089e61ac5c7383cc2175f91fdc Mon Sep 17 00:00:00 2001 From: zhaojun1998 Date: Sat, 1 Feb 2020 21:51:15 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=20OneDrive=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E5=8C=85=E5=90=AB=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E7=AC=A6=E5=8F=B7=E6=97=B6,=20=E8=8E=B7=E5=8F=96=E4=B8=8B?= =?UTF-8?q?=E4=B8=80=E9=A1=B5=E6=95=B0=E6=8D=AE=20URL=20=E4=B8=AD=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E8=BF=9B=E8=A1=8C=E4=BA=86=20URL=20=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E7=9A=84=20BUG.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../onedrive/common/service/AbstractOneDriveService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/im/zhaojun/onedrive/common/service/AbstractOneDriveService.java b/src/main/java/im/zhaojun/onedrive/common/service/AbstractOneDriveService.java index f926edf..9e9686f 100644 --- a/src/main/java/im/zhaojun/onedrive/common/service/AbstractOneDriveService.java +++ b/src/main/java/im/zhaojun/onedrive/common/service/AbstractOneDriveService.java @@ -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 {