1
This commit is contained in:
@@ -136,8 +136,8 @@ func (a *API) QueryOrderInfo(orderID string) (order *OrderInfo, err error) {
|
||||
if err == nil {
|
||||
err = utils.Map2StructByJson(result.Result, &order, false)
|
||||
}
|
||||
order.DeductFee += utils.Int2Float64(utils.WayBillDeliveryMarkUp)
|
||||
order.ActualFee += utils.Int2Float64(utils.WayBillDeliveryMarkUp)
|
||||
order.DeliveryFee += utils.Int2Float64(utils.WayBillDeliveryMarkUp)
|
||||
//order.ActualFee += utils.Int2Float64(utils.WayBillDeliveryMarkUp)
|
||||
return order, err
|
||||
}
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@ package dadaapi
|
||||
|
||||
//
|
||||
import (
|
||||
"fmt"
|
||||
//"fmt"
|
||||
"testing"
|
||||
|
||||
//"git.rosy.net.cn/baseapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
@@ -75,10 +75,8 @@ func TestQueryOrderInfo(t *testing.T) {
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
//
|
||||
//func TestAddTip(t *testing.T) {
|
||||
// err := dadaapi.AddTip("80704840263399812", 1.0, "530100", "")
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
//}
|
||||
func TestAddTip(t *testing.T) {
|
||||
payload := map[string]interface{}{"categoryID": 3095}
|
||||
fmt.Println(payload["img"] != nil)
|
||||
fmt.Println(payload["img"] != "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user