Selaa lähdekoodia

修改请求逻辑

tianboguang 2 vuotta sitten
vanhempi
commit
b37c9fd4ae

+ 3 - 0
4dkankan-utils-fyun-https/src/main/java/com/fdkankan/fyun/http/HttpFileService.java

@@ -307,6 +307,9 @@ public class HttpFileService extends AbstractFYunFileService {
             if (!sourcePath.startsWith(File.separator)) {
                 sourcePath = File.separator.concat(sourcePath);
             }
+            if (sourcePath.endsWith(File.separator)) {
+                sourcePath = sourcePath.substring(0, sourcePath.length() - 1);
+            }
 
             params.put("dirName", sourcePath);
             String url = fYunFileConfig.getEndPoint() + httpFyunConfig.getListDir();