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 查询订单列表
|
||||
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 {
|
||||
|
||||
@ -8,8 +8,9 @@ import (
|
||||
|
||||
// AuthConfig api鉴权参数
|
||||
type AuthConfig struct {
|
||||
AppKey string // 应用key
|
||||
AppSecret string // 应用秘钥
|
||||
AppKey string // 应用key
|
||||
AppSecret string // 应用秘钥
|
||||
SupplierID string // 供应商ID(账号)
|
||||
}
|
||||
|
||||
// 连接第三方平台的client
|
||||
|
||||
Loading…
Reference in New Issue
Block a user