t3联盟api对接, authConfig添加SupplierID

This commit is contained in:
wukesheng 2024-06-15 21:01:51 +08:00
parent 70196d3b99
commit ce6650721f
2 changed files with 6 additions and 2 deletions

View File

@ -157,6 +157,9 @@ func (a *t3UnionApiImpl) GeneratePoster(ctx context.Context, req GeneratePosterR
// QueryOrderList 查询订单列表
func (a *t3UnionApiImpl) QueryOrderList(ctx context.Context, req QueryOrderListRequest) (*QueryOrderData, error) {
if len(req.SupplierUuid) == 0 {
req.SupplierUuid = a.client.authConfig.SupplierID
}
args := util.StructToMap(req)
headers := a.buildHeader(http.MethodPost, GetOrderListUri, args)
for k, v := range a.client.headers {

View File

@ -8,8 +8,9 @@ import (
// AuthConfig api鉴权参数
type AuthConfig struct {
AppKey string // 应用key
AppSecret string // 应用秘钥
AppKey string // 应用key
AppSecret string // 应用秘钥
SupplierID string // 供应商ID账号
}
// 连接第三方平台的client