From 9837b2057cfe7432ee7dabd8bfbf0eda5e2628c2 Mon Sep 17 00:00:00 2001 From: jhc Date: Tue, 18 Feb 2025 14:56:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B4=A6=E5=8F=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/bccr/bccr.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/bccr/bccr.go b/pkg/bccr/bccr.go index 3733bec..b149e52 100644 --- a/pkg/bccr/bccr.go +++ b/pkg/bccr/bccr.go @@ -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 {