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