Compare commits
2 Commits
bb951e98d2
...
095b3973e6
Author | SHA1 | Date | |
---|---|---|---|
095b3973e6 | |||
8aa30b5b25 |
@ -2,6 +2,7 @@ package bccr
|
||||
|
||||
import (
|
||||
dciConfig "chain-dci/config"
|
||||
|
||||
bccrClient "github.com/antchain-openapi-sdk-go/bccr/client"
|
||||
"github.com/google/wire"
|
||||
)
|
||||
@ -12,9 +13,9 @@ func NewBccrClient() *bccrClient.Client {
|
||||
// Endpoint 请参考 https://api.aliyun.com/product/rtc
|
||||
|
||||
bccrConfig := new(bccrClient.Config)
|
||||
bccrConfig.SetEndpoint(dciConfig.Data.BccrYXT.EndPoint)
|
||||
bccrConfig.SetAccessKeyId(dciConfig.Data.BccrYXT.AccessKeyID)
|
||||
bccrConfig.SetAccessKeySecret(dciConfig.Data.BccrYXT.AccessKeySecret)
|
||||
bccrConfig.SetEndpoint(dciConfig.Data.BccrYXTT.EndPoint)
|
||||
bccrConfig.SetAccessKeyId(dciConfig.Data.BccrYXTT.AccessKeyID)
|
||||
bccrConfig.SetAccessKeySecret(dciConfig.Data.BccrYXTT.AccessKeySecret)
|
||||
|
||||
client, err := bccrClient.NewClient(bccrConfig)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user