mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-05 09:36:00 +08:00
Refactor code
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user