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

1

parent 72b7dfb5
......@@ -143,7 +143,7 @@ public class AliyunApiController {
if(!StringUtil.isNotEmpty(videoId)) {
return Rjx.jsonErr().setMessage(messages.get("err.param_null"));
}
AliyunUtil aliyunUtil = new AliyunUtil(accessKeyId,accessKeySecret);
try {
GetVideoPlayAuthResponse response = aliyunUtil.getVideoPlayAuth(videoId);
......
......@@ -21,8 +21,8 @@ import com.egolm.common.HttpsUtil;
import com.egolm.film.config.XRException;
public class AliyunUtil {
private String accessKeyId = "";//"LTAIOtHCCpDLXYp8";
private String accessKeySecret = "";//"9XTHW7P9TTRvCsBHBSclOue2tdWOoa";
private String accessKeyId = "LTAIOtHCCpDLXYp8";
private String accessKeySecret = "9XTHW7P9TTRvCsBHBSclOue2tdWOoa";
private final DefaultAcsClient aliyunClient;
......@@ -33,6 +33,8 @@ public class AliyunUtil {
public AliyunUtil(String accessKeyId,String accessKeySecret) {
this.accessKeyId = accessKeyId;
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));
}
......
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