1
This commit is contained in:
@@ -69,7 +69,7 @@ func TestCancel(t *testing.T) {
|
||||
//
|
||||
func TestQueryOrderInfo(t *testing.T) {
|
||||
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 {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
@@ -72,20 +72,20 @@ func TestCreateToken(t *testing.T) {
|
||||
// 快手预下单获取支付参数
|
||||
func TestPreCreateOrder(t *testing.T) {
|
||||
param := &PreCreateOrderReq{
|
||||
OutOrderNo: "88422209072664",
|
||||
OpenId: "f198f59711c9785314bf5724f7ab9f47",
|
||||
TotalAmount: 501,
|
||||
Subject: "蔬菜水果日用品",
|
||||
Detail: "好吃的素材水果",
|
||||
TypeDetail: 1832, // 素菜
|
||||
ExpireTime: 10 * 60,
|
||||
Sign: "",
|
||||
Attach: "22",
|
||||
NotifyUrl: "https://callback-jxgy.jxc4.com/kuaishou/kuaiShouCallback",
|
||||
GoodsId: "1122",
|
||||
GoodsDetailUrl: "/page/index/anima",
|
||||
//MultiCopiesGoodsInfo: `[{"copies":2}]`,
|
||||
CancelOrder: 1,
|
||||
OutOrderNo: "88422209072664",
|
||||
OpenId: "f198f59711c9785314bf5724f7ab9f47",
|
||||
TotalAmount: 501,
|
||||
Subject: "蔬菜水果日用品",
|
||||
Detail: "好吃的素材水果",
|
||||
TypeDetail: 1832, // 素菜
|
||||
ExpireTime: 10 * 60,
|
||||
Sign: "",
|
||||
Attach: "22",
|
||||
NotifyUrl: "https://callback-jxgy.jxc4.com/kuaishou/kuaiShouCallback",
|
||||
GoodsId: "1122",
|
||||
GoodsDetailUrl: "/page/index/anima",
|
||||
MultiCopiesGoodsInfo: `[{"copies":2}]`,
|
||||
CancelOrder: 1,
|
||||
}
|
||||
data, err := api.PreCreateOrder(param)
|
||||
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
|
||||
|
||||
Reference in New Issue
Block a user