|
@@ -1,6 +1,7 @@
|
|
package cn.com.qmth.examcloud.exchange.inner.api.provider;
|
|
package cn.com.qmth.examcloud.exchange.inner.api.provider;
|
|
|
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
|
@@ -45,6 +46,8 @@ public class UpyunCloudServiceProvider extends ControllerSupport implements Upyu
|
|
@Override
|
|
@Override
|
|
public PutFileResp putFile(@ModelAttribute PutFileReq req) {
|
|
public PutFileResp putFile(@ModelAttribute PutFileReq req) {
|
|
String fileSuffix = req.getFileSuffix();
|
|
String fileSuffix = req.getFileSuffix();
|
|
|
|
+ String relativePath = req.getRelativePath();
|
|
|
|
+ Map<String, String> properties = req.getProperties();
|
|
Long rootOrgId = req.getRootOrgId();
|
|
Long rootOrgId = req.getRootOrgId();
|
|
Long userId = req.getUserId();
|
|
Long userId = req.getUserId();
|
|
String siteId = req.getSiteId();
|
|
String siteId = req.getSiteId();
|
|
@@ -54,6 +57,8 @@ public class UpyunCloudServiceProvider extends ControllerSupport implements Upyu
|
|
env.setRootOrgId(String.valueOf(rootOrgId));
|
|
env.setRootOrgId(String.valueOf(rootOrgId));
|
|
env.setUserId(String.valueOf(userId));
|
|
env.setUserId(String.valueOf(userId));
|
|
env.setFileSuffix(fileSuffix);
|
|
env.setFileSuffix(fileSuffix);
|
|
|
|
+ env.setRelativePath(relativePath);
|
|
|
|
+ env.setProperties(properties);
|
|
|
|
|
|
UpYunPathInfo path = null;
|
|
UpYunPathInfo path = null;
|
|
try {
|
|
try {
|