This commit is contained in:
邹宗楠
2026-01-21 14:14:26 +08:00
parent abaf8aa75e
commit ab96fc6343
11 changed files with 147 additions and 31 deletions

View File

@@ -845,3 +845,18 @@ type CommonAttrValueList struct {
} `json:"valueListIterator"`
ValueListSize int `json:"valueListSize"`
}
// GetOrderAddress 获取美团订单加密地址
// https://tscc.meituan.com/home/doc/market/10619
func (a *API) GetOrderAddress(orderId int64, reasonType int) (address string, err error) {
result, err := a.AccessAPI2("ecommerce/order/getOrderRecipientAddress", true, map[string]interface{}{
"order_id": orderId,
"reason_type": reasonType,
}, "success_map", "")
if err != nil {
return "", err
}
return result.(map[string]interface{})["recipient_address"].(string), nil
}