|
|
@@ -234,12 +234,9 @@ func GetSTSVoucher(c *gin.Context) { |
|
|
|
if err.Error() == "redigo: nil returned" { |
|
|
|
|
|
|
|
endpoint := cfgMap[enum2.AliyunOssEndpoint] |
|
|
|
//assumeRoleAccessKeyID := cfgMap[enum2.AliyunOssAssumeRoleAccessKeyID] |
|
|
|
//assumeRoleAccessKeySecret := cfgMap[enum2.AliyunOssAssumeRoleAccessKeySecret] |
|
|
|
//assumeRoleARN := cfgMap[enum2.AliyunOssAssumeRoleARN] |
|
|
|
assumeRoleAccessKeyID := "LTAI5t7NtS83omCUZwBLQNU5" |
|
|
|
assumeRoleAccessKeySecret := "cMQyPeZIZJPt7bIwvMXHfKxoeFx09u" |
|
|
|
assumeRoleARN := "acs:ram::1319334214744861:role/ramosstest" |
|
|
|
assumeRoleAccessKeyID := cfgMap[enum2.AliyunOssAssumeRoleAccessKeyID] |
|
|
|
assumeRoleAccessKeySecret := cfgMap[enum2.AliyunOssAssumeRoleAccessKeySecret] |
|
|
|
assumeRoleARN := cfgMap[enum2.AliyunOssAssumeRoleARN] |
|
|
|
roleSessionName := "STSRam" |
|
|
|
|
|
|
|
endpointList := strings.Split(endpoint, "-") |
|
|
@@ -280,6 +277,7 @@ func GetSTSVoucher(c *gin.Context) { |
|
|
|
Region: region, |
|
|
|
} |
|
|
|
e.OutSuc(c, resp, nil) |
|
|
|
return |
|
|
|
} else { |
|
|
|
e.OutErr(c, e.ERR, nil) |
|
|
|
return |
|
|
|