diff --git a/src/main/java/com/gxwebsoft/common/system/controller/AliOssController.java b/src/main/java/com/gxwebsoft/common/system/controller/AliOssController.java index e958d71..328a1e3 100644 --- a/src/main/java/com/gxwebsoft/common/system/controller/AliOssController.java +++ b/src/main/java/com/gxwebsoft/common/system/controller/AliOssController.java @@ -196,12 +196,12 @@ public class AliOssController extends BaseController { // STS接入地址,例如sts.cn-hangzhou.aliyuncs.com。 String endpoint = "sts.cn-shenzhen.aliyuncs.com"; // 填写步骤1生成的RAM用户访问密钥AccessKey ID和AccessKey Secret。 - String accessKeyId = "LTAI5t8UTh8CTXEi2dYxobhj"; - String accessKeySecret = "fNdJOT4KAjrVrzHNAcSJuUCy9ZljD9"; + String accessKeyId = "LTAI5tCjTtR7TwrzerB1yUML"; + String accessKeySecret = "n4fbWMer3sHI8K32mKpg47Ba9rR4yp"; // 填写步骤3获取的角色ARN。 - String roleArn = "acs:ram::1194088977870561:role/ramosstest"; + String roleArn = "acs:ram::1470199532233684:role/wsoss"; // 自定义角色会话名称,用来区分不同的令牌,例如可填写为SessionTest。 - String roleSessionName = "jimeiapp"; + String roleSessionName = "wsoss"; // 设置临时访问凭证的有效时间为3600秒。 Long durationSeconds = 3600L; try {