1
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -571,6 +572,7 @@ func (a *API) OrderLogisticsFee(orderID int64) (payFee float64, err error) {
|
|||||||
result, err := a.AccessAPI("order/logistics/status", true, map[string]interface{}{
|
result, err := a.AccessAPI("order/logistics/status", true, map[string]interface{}{
|
||||||
KeyOrderID: orderID,
|
KeyOrderID: orderID,
|
||||||
})
|
})
|
||||||
|
globals.SugarLogger.Debugf("=resutl := %s", utils.Format4Output(result, false))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ func TestOrderLogisticsStatus(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestOrderLogisticsFee(t *testing.T) {
|
func TestOrderLogisticsFee(t *testing.T) {
|
||||||
result, err := api.OrderLogisticsFee(900699270657684955)
|
result, err := api.OrderLogisticsFee(900699454211738469)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user