- weimob order and callback
This commit is contained in:
26
platformapi/weimobapi/order_test.go
Normal file
26
platformapi/weimobapi/order_test.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package weimobapi
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
|
||||
func TestQueryOrderDetail(t *testing.T) {
|
||||
result, err := api.QueryOrderDetail(5287873015048, false)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestBatchDeliveryOrder(t *testing.T) {
|
||||
deliveryOrder := &DeliveryOrder{
|
||||
OrderNo: 5287873015048,
|
||||
}
|
||||
err := api.DeliveryOrder(deliveryOrder)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user