Refactor code

This commit is contained in:
wenxu12345
2022-01-17 18:25:35 +08:00
parent 655f7ff7d0
commit a456936853
2 changed files with 5 additions and 5 deletions
@@ -57,9 +57,9 @@ func TencentCloudStorageCredential(c *gin.Context) {
resp.ErrCode = constant.ErrTencentCredential.ErrCode
resp.ErrMsg = err.Error()
} else {
resp.Bucket = config.Config.Credential.Tencent.Bucket
resp.Region = config.Config.Credential.Tencent.Region
resp.CredentialResult = res
resp.Data.Bucket = config.Config.Credential.Tencent.Bucket
resp.Data.Region = config.Config.Credential.Tencent.Region
resp.Data.CredentialResult = res
}
c.JSON(http.StatusOK, resp)
}