feat: 更新 dci 的账号配置
This commit is contained in:
parent
1f72ee4d85
commit
8aa30b5b25
@ -23,6 +23,10 @@ BccrYXT:
|
||||
access_key_id: "ACSvp2GUdWUucS7r"
|
||||
access_key_secret: "dQ8hFkLs2qnMNYRuvrtzDp6mtQB7uVwg"
|
||||
end_point: "openapi-sit.antchain.antgroup.com"
|
||||
BccrYXTT:
|
||||
access_key_id: "ACP3FoMEReCspQE9"
|
||||
access_key_secret: "dSKMGNjByXJsd1jcqjZomSPkwvR9AfBJ"
|
||||
end_point: "openapi-sit.antchain.antgroup.com"
|
||||
#aliYunRtc:
|
||||
# appid: "aeztom27"
|
||||
# app_key: "76c62466cbd77d7a3606660a15861d1e"
|
||||
|
@ -17,6 +17,10 @@ BccrYXT:
|
||||
access_key_secret: "dQ8hFkLs2qnMNYRuvrtzDp6mtQB7uVwg"
|
||||
# end_point: "openapi.antchain.antgroup.com" # 正式的 endpoint
|
||||
end_point: "openapi-sit.antchain.antgroup.com" # 测试式的 endpoint
|
||||
BccrYXTT:
|
||||
access_key_id: "ACP3FoMEReCspQE9"
|
||||
access_key_secret: "dSKMGNjByXJsd1jcqjZomSPkwvR9AfBJ"
|
||||
end_point: "openapi-sit.antchain.antgroup.com" # 测试式的 endpoint
|
||||
#redis:
|
||||
# db: ${oa-meeting.redis.db}
|
||||
# addr: ${redis.addr}
|
||||
|
@ -9,6 +9,10 @@ BccrYXT:
|
||||
access_key_id: "ACSvp2GUdWUucS7r"
|
||||
access_key_secret: "dQ8hFkLs2qnMNYRuvrtzDp6mtQB7uVwg"
|
||||
end_point: "openapi.antchain.antgroup.com"
|
||||
BccrYXTT:
|
||||
access_key_id: "ACP3FoMEReCspQE9"
|
||||
access_key_secret: "dSKMGNjByXJsd1jcqjZomSPkwvR9AfBJ"
|
||||
end_point: "openapi.antchain.antgroup.com"
|
||||
#redis:
|
||||
# db: ${oa-meeting.redis.db}
|
||||
# addr: ${redis.addr}
|
||||
|
@ -2,12 +2,13 @@ package config
|
||||
|
||||
import (
|
||||
"chain-dci/pkg/msg"
|
||||
"dubbo.apache.org/dubbo-go/v3/common/constant"
|
||||
"fmt"
|
||||
"github.com/spf13/viper"
|
||||
"os"
|
||||
"reflect"
|
||||
"strings"
|
||||
|
||||
"dubbo.apache.org/dubbo-go/v3/common/constant"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
var Data = new(AppConfig)
|
||||
@ -39,6 +40,11 @@ type AppConfig struct {
|
||||
AccessKeySecret string `mapstructure:"access_key_secret"`
|
||||
EndPoint string `mapstructure:"end_point"`
|
||||
}
|
||||
BccrYXTT struct {
|
||||
AccessKeyID string `mapstructure:"access_key_id"`
|
||||
AccessKeySecret string `mapstructure:"access_key_secret"`
|
||||
EndPoint string `mapstructure:"end_point"`
|
||||
}
|
||||
Redis struct {
|
||||
DB string
|
||||
Addr string
|
||||
|
@ -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