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