Browse Source

修改版本

master
richie 4 years ago
parent
commit
d8d3c43de1
  1. 0
      lib/dependence/aliyun-java-sdk-core-3.4.0.jar
  2. 0
      lib/dependence/aliyun-java-sdk-ecs-4.2.0.jar
  3. BIN
      lib/dependence/aliyun-java-sdk-kms-2.7.0.jar
  4. 0
      lib/dependence/aliyun-java-sdk-ram-3.0.0.jar
  5. 0
      lib/dependence/aliyun-java-sdk-sts-3.0.0.jar
  6. BIN
      lib/dependence/aliyun-sdk-oss-3.11.0.jar
  7. 0
      lib/dependence/commons-codec-1.9.jar
  8. 0
      lib/dependence/commons-logging-1.2.jar
  9. BIN
      lib/dependence/gson-2.8.5.jar
  10. 0
      lib/dependence/httpclient-4.4.1.jar
  11. 0
      lib/dependence/httpcore-4.4.1.jar
  12. BIN
      lib/dependence/jdom2-2.0.6.jar
  13. BIN
      lib/dependence/jettison-1.1.jar
  14. 0
      lib/dependence/stax-api-1.0.1.jar
  15. 3
      src/main/java/com/fr/plugin/file/submit/oss/OssHyperlinkJavaScriptHandler.java
  16. 4
      src/main/java/com/fr/plugin/file/submit/oss/fun/OssDownloadHttpHandler.java

0
lib/dependence/aliyun-java-sdk-core-3.4.0.jar

0
lib/dependence/aliyun-java-sdk-ecs-4.2.0.jar

BIN
lib/dependence/aliyun-java-sdk-kms-2.7.0.jar

Binary file not shown.

0
lib/dependence/aliyun-java-sdk-ram-3.0.0.jar

0
lib/dependence/aliyun-java-sdk-sts-3.0.0.jar

BIN
lib/dependence/aliyun-sdk-oss-3.11.0.jar

Binary file not shown.

0
lib/dependence/commons-codec-1.9.jar

0
lib/dependence/commons-logging-1.2.jar

BIN
lib/dependence/gson-2.8.5.jar

Binary file not shown.

0
lib/dependence/httpclient-4.4.1.jar

0
lib/dependence/httpcore-4.4.1.jar

BIN
lib/dependence/jdom2-2.0.6.jar

Binary file not shown.

BIN
lib/dependence/jettison-1.1.jar

Binary file not shown.

0
lib/dependence/stax-api-1.0.1.jar

3
src/main/java/com/fr/plugin/file/submit/oss/OssHyperlinkJavaScriptHandler.java

@ -1,5 +1,6 @@
package com.fr.plugin.file.submit.oss; package com.fr.plugin.file.submit.oss;
import com.fanruan.api.log.LogKit;
import com.fanruan.api.util.RenderKit; import com.fanruan.api.util.RenderKit;
import com.fr.stable.fun.impl.AbstractJavaScriptFileHandler; import com.fr.stable.fun.impl.AbstractJavaScriptFileHandler;
@ -12,7 +13,7 @@ public class OssHyperlinkJavaScriptHandler extends AbstractJavaScriptFileHandler
String text = RenderKit.renderParameter4Tpl("${fineServletURL}", Collections.EMPTY_MAP); String text = RenderKit.renderParameter4Tpl("${fineServletURL}", Collections.EMPTY_MAP);
System.out.println(text); System.out.println(text);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); LogKit.error(e.getMessage(), e);
} }
return new String[]{ return new String[]{
"/com/fr/plugin/file/submit/oss/web/oss.js" "/com/fr/plugin/file/submit/oss/web/oss.js"

4
src/main/java/com/fr/plugin/file/submit/oss/fun/OssDownloadHttpHandler.java

@ -1,7 +1,9 @@
package com.fr.plugin.file.submit.oss.fun; package com.fr.plugin.file.submit.oss.fun;
import com.aliyun.oss.HttpMethod; import com.aliyun.oss.HttpMethod;
import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClient; import com.aliyun.oss.OSSClient;
import com.aliyun.oss.OSSClientBuilder;
import com.aliyun.oss.model.GeneratePresignedUrlRequest; import com.aliyun.oss.model.GeneratePresignedUrlRequest;
import com.fanruan.api.net.NetworkKit; import com.fanruan.api.net.NetworkKit;
import com.fr.decision.fun.impl.BaseHttpHandler; import com.fr.decision.fun.impl.BaseHttpHandler;
@ -46,7 +48,7 @@ public class OssDownloadHttpHandler extends BaseHttpHandler {
private String createDownloadUrl(String bucket, String directory, String fileName) throws Exception { private String createDownloadUrl(String bucket, String directory, String fileName) throws Exception {
// 创建OSSClient实例。 // 创建OSSClient实例。
OSSClient ossClient = new OSSClient( OSS ossClient = new OSSClientBuilder().build(
OssUniversalConfig.getInstance().getEndPoint(), OssUniversalConfig.getInstance().getEndPoint(),
OssUniversalConfig.getInstance().getAccessKeyId(), OssUniversalConfig.getInstance().getAccessKeyId(),
OssUniversalConfig.getInstance().getRealAccessKeySecret()); OssUniversalConfig.getInstance().getRealAccessKeySecret());

Loading…
Cancel
Save