修改账号信息
This commit is contained in:
parent
7d008eed00
commit
9837b2057c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user