Browse Source

update

master
shenjiachi 2 days ago
parent
commit
e6d4b03ada
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      app/hdl/comm/hdl_comm.go

+ 4
- 6
app/hdl/comm/hdl_comm.go View File

@@ -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


Loading…
Cancel
Save