Merge branch 'cjy' into dev
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
cjy 2025-10-17 09:01:36 +08:00
commit 05c234b05a
5 changed files with 24 additions and 5 deletions

View File

@ -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"

View File

@ -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}

View File

@ -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}

View File

@ -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

View File

@ -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 {