Commit 288720f8 authored by 张永's avatar 张永

1

parent 72b7dfb5
...@@ -143,7 +143,7 @@ public class AliyunApiController { ...@@ -143,7 +143,7 @@ public class AliyunApiController {
if(!StringUtil.isNotEmpty(videoId)) { if(!StringUtil.isNotEmpty(videoId)) {
return Rjx.jsonErr().setMessage(messages.get("err.param_null")); return Rjx.jsonErr().setMessage(messages.get("err.param_null"));
} }
AliyunUtil aliyunUtil = new AliyunUtil(accessKeyId,accessKeySecret); AliyunUtil aliyunUtil = new AliyunUtil(accessKeyId,accessKeySecret);
try { try {
GetVideoPlayAuthResponse response = aliyunUtil.getVideoPlayAuth(videoId); GetVideoPlayAuthResponse response = aliyunUtil.getVideoPlayAuth(videoId);
......
...@@ -21,8 +21,8 @@ import com.egolm.common.HttpsUtil; ...@@ -21,8 +21,8 @@ import com.egolm.common.HttpsUtil;
import com.egolm.film.config.XRException; import com.egolm.film.config.XRException;
public class AliyunUtil { public class AliyunUtil {
private String accessKeyId = "";//"LTAIOtHCCpDLXYp8"; private String accessKeyId = "LTAIOtHCCpDLXYp8";
private String accessKeySecret = "";//"9XTHW7P9TTRvCsBHBSclOue2tdWOoa"; private String accessKeySecret = "9XTHW7P9TTRvCsBHBSclOue2tdWOoa";
private final DefaultAcsClient aliyunClient; private final DefaultAcsClient aliyunClient;
...@@ -33,6 +33,8 @@ public class AliyunUtil { ...@@ -33,6 +33,8 @@ public class AliyunUtil {
public AliyunUtil(String accessKeyId,String accessKeySecret) { public AliyunUtil(String accessKeyId,String accessKeySecret) {
this.accessKeyId = accessKeyId; this.accessKeyId = accessKeyId;
this.accessKeySecret = accessKeySecret; this.accessKeySecret = accessKeySecret;
System.out.println("accessKeyId----"+this.accessKeyId);
System.out.println("accessKeySecret----"+this.accessKeySecret);
this.aliyunClient = new DefaultAcsClient(DefaultProfile.getProfile("cn-shanghai", accessKeyId, accessKeySecret)); this.aliyunClient = new DefaultAcsClient(DefaultProfile.getProfile("cn-shanghai", accessKeyId, accessKeySecret));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment