t3联盟api对接, authConfig添加SupplierID
This commit is contained in:
parent
70196d3b99
commit
ce6650721f
@ -157,6 +157,9 @@ func (a *t3UnionApiImpl) GeneratePoster(ctx context.Context, req GeneratePosterR
|
|||||||
|
|
||||||
// QueryOrderList 查询订单列表
|
// QueryOrderList 查询订单列表
|
||||||
func (a *t3UnionApiImpl) QueryOrderList(ctx context.Context, req QueryOrderListRequest) (*QueryOrderData, error) {
|
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)
|
args := util.StructToMap(req)
|
||||||
headers := a.buildHeader(http.MethodPost, GetOrderListUri, args)
|
headers := a.buildHeader(http.MethodPost, GetOrderListUri, args)
|
||||||
for k, v := range a.client.headers {
|
for k, v := range a.client.headers {
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import (
|
|||||||
type AuthConfig struct {
|
type AuthConfig struct {
|
||||||
AppKey string // 应用key
|
AppKey string // 应用key
|
||||||
AppSecret string // 应用秘钥
|
AppSecret string // 应用秘钥
|
||||||
|
SupplierID string // 供应商ID(账号)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 连接第三方平台的client
|
// 连接第三方平台的client
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user