1
This commit is contained in:
@@ -552,14 +552,14 @@ func (a *API) OrderLogisticsCancel(orderID int64, reason string) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
func (a *API) OrderLogisticsStatus(orderID int64) (status map[string]interface{}, err error) {
|
||||
func (a *API) OrderLogisticsStatus(orderID int64) (status int64, err error) {
|
||||
result, err := a.AccessAPI("order/logistics/status", true, map[string]interface{}{
|
||||
KeyOrderID: orderID,
|
||||
})
|
||||
if err == nil {
|
||||
return result.(map[string]interface{}), nil
|
||||
return result.(map[string]interface{})["logistics_status"].(int64), nil
|
||||
}
|
||||
return nil, err
|
||||
return 0, err
|
||||
}
|
||||
|
||||
// 拉取用户真实手机号(必接)
|
||||
|
||||
Reference in New Issue
Block a user