1
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,20 +72,20 @@ func TestCreateToken(t *testing.T) {
|
|||||||
// 快手预下单获取支付参数
|
// 快手预下单获取支付参数
|
||||||
func TestPreCreateOrder(t *testing.T) {
|
func TestPreCreateOrder(t *testing.T) {
|
||||||
param := &PreCreateOrderReq{
|
param := &PreCreateOrderReq{
|
||||||
OutOrderNo: "88422209072664",
|
OutOrderNo: "88422209072664",
|
||||||
OpenId: "f198f59711c9785314bf5724f7ab9f47",
|
OpenId: "f198f59711c9785314bf5724f7ab9f47",
|
||||||
TotalAmount: 501,
|
TotalAmount: 501,
|
||||||
Subject: "蔬菜水果日用品",
|
Subject: "蔬菜水果日用品",
|
||||||
Detail: "好吃的素材水果",
|
Detail: "好吃的素材水果",
|
||||||
TypeDetail: 1832, // 素菜
|
TypeDetail: 1832, // 素菜
|
||||||
ExpireTime: 10 * 60,
|
ExpireTime: 10 * 60,
|
||||||
Sign: "",
|
Sign: "",
|
||||||
Attach: "22",
|
Attach: "22",
|
||||||
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)
|
||||||
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
|
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
|
||||||
|
|||||||
Reference in New Issue
Block a user