This commit is contained in:
邹宗楠
2023-05-25 10:57:42 +08:00
parent 259708e2cb
commit 05b9fe2a06
2 changed files with 15 additions and 15 deletions

View File

@@ -69,7 +69,7 @@ func TestCancel(t *testing.T) {
// //
func TestQueryOrderInfo(t *testing.T) { func TestQueryOrderInfo(t *testing.T) {
dadaapi = New("dada154e2a41fd6cef3", "7f97d8f258b70b450f04e7ab274ed8f8", "6660", "http://callback.jxc4.com/dadadelivery/msg", true) dadaapi = New("dada154e2a41fd6cef3", "7f97d8f258b70b450f04e7ab274ed8f8", "6660", "http://callback.jxc4.com/dadadelivery/msg", true)
result, err := dadaapi.QueryOrderInfo("88421859678001") result, err := dadaapi.QueryOrderInfo("1100558421786954920")
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }

View File

@@ -84,7 +84,7 @@ func TestPreCreateOrder(t *testing.T) {
NotifyUrl: "https://callback-jxgy.jxc4.com/kuaishou/kuaiShouCallback", NotifyUrl: "https://callback-jxgy.jxc4.com/kuaishou/kuaiShouCallback",
GoodsId: "1122", GoodsId: "1122",
GoodsDetailUrl: "/page/index/anima", GoodsDetailUrl: "/page/index/anima",
//MultiCopiesGoodsInfo: `[{"copies":2}]`, MultiCopiesGoodsInfo: `[{"copies":2}]`,
CancelOrder: 1, CancelOrder: 1,
} }
data, err := api.PreCreateOrder(param) data, err := api.PreCreateOrder(param)