1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user