修改账号信息

This commit is contained in:
蒋海成 2025-02-18 14:56:37 +08:00
parent 7d008eed00
commit 9837b2057c

View File

@ -1,4 +1,4 @@
package bccr
package bccr_yxt
import (
dciConfig "chain-dci/config"
@ -6,15 +6,15 @@ import (
"github.com/google/wire"
)
var Provider = wire.NewSet(NewBccrClient)
var Provider = wire.NewSet(NewBccrYXTClient)
func NewBccrClient() *bccrClient.Client {
func NewBccrYXTClient() *bccrClient.Client {
// Endpoint 请参考 https://api.aliyun.com/product/rtc
bccrConfig := new(bccrClient.Config)
bccrConfig.SetEndpoint(dciConfig.Data.Bccr.EndPoint)
bccrConfig.SetAccessKeyId(dciConfig.Data.Bccr.AccessKeyID)
bccrConfig.SetAccessKeySecret(dciConfig.Data.Bccr.AccessKeySecret)
bccrConfig.SetEndpoint(dciConfig.Data.BccrYXT.EndPoint)
bccrConfig.SetAccessKeyId(dciConfig.Data.BccrYXT.AccessKeyID)
bccrConfig.SetAccessKeySecret(dciConfig.Data.BccrYXT.AccessKeySecret)
client, err := bccrClient.NewClient(bccrConfig)
if err != nil {