Ver código fonte

修改请求逻辑

tianboguang 2 anos atrás
pai
commit
8872e2df0a

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

@@ -304,6 +304,10 @@ public class HttpFileService extends AbstractFYunFileService {
             params.put("appName", fYunFileConfig.getKey());
             params.put("secret", fYunFileConfig.getSecret());
 
+            if (!sourcePath.startsWith(File.separator)) {
+                sourcePath = File.separator.concat(sourcePath);
+            }
+
             params.put("dirName", sourcePath);
             String url = fYunFileConfig.getEndPoint() + httpFyunConfig.getListDir();