1
This commit is contained in:
@@ -45,7 +45,7 @@ import (
|
|||||||
//}
|
//}
|
||||||
//
|
//
|
||||||
func TestCancel(t *testing.T) {
|
func TestCancel(t *testing.T) {
|
||||||
cancelResponse, err := dadaapi.CancelOrder("8000051859647401017", ReasonIDClientCanceled, "协商一致")
|
cancelResponse, err := dadaapi.CancelOrder("88442515379092", ReasonIDClientCanceled, "协商一致")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ func (a *API) PreCreateOrder(preOrder *PreCreateOrderReq) (price float64, err er
|
|||||||
preOrder.PushTime = time.Now().Unix()
|
preOrder.PushTime = time.Now().Unix()
|
||||||
preOrder.DevId = a.devId
|
preOrder.DevId = a.devId
|
||||||
|
|
||||||
//preOrder.ShopId = SFShopTestOpenStoreID // 测试用
|
preOrder.ShopId = SFShopTestOpenStoreID // 测试用
|
||||||
|
|
||||||
resp := a.HttpPostJson("precreateorder", preOrder)
|
resp := a.HttpPostJson("precreateorder", preOrder)
|
||||||
if resp.HttpStatusCode != HttpStatusSuccessCode {
|
if resp.HttpStatusCode != HttpStatusSuccessCode {
|
||||||
@@ -42,7 +42,7 @@ func (a *API) CreateOrder(order *CreateOrderReq) (sfOrderID, sfBillID string, to
|
|||||||
order.Version = DefaultVersion
|
order.Version = DefaultVersion
|
||||||
order.DevId = a.devId
|
order.DevId = a.devId
|
||||||
|
|
||||||
//order.ShopId = SFShopTestOpenStoreID // 测试用
|
order.ShopId = SFShopTestOpenStoreID // 测试用
|
||||||
|
|
||||||
resp := a.HttpPostJson("createorder", order)
|
resp := a.HttpPostJson("createorder", order)
|
||||||
if resp.HttpStatusCode != HttpStatusSuccessCode {
|
if resp.HttpStatusCode != HttpStatusSuccessCode {
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ func TestCreateOrder(t *testing.T) {
|
|||||||
DevId: AppID,
|
DevId: AppID,
|
||||||
ShopId: TestSFStoreID,
|
ShopId: TestSFStoreID,
|
||||||
ShopType: 1,
|
ShopType: 1,
|
||||||
ShopOrderId: "20240108",
|
ShopOrderId: "20240109",
|
||||||
OrderSequence: "测试",
|
OrderSequence: "测试",
|
||||||
OrderSource: OrderSourceELM,
|
OrderSource: OrderSourceELM,
|
||||||
OrderTime: 1694168441,
|
OrderTime: 1694168441,
|
||||||
@@ -135,3 +135,7 @@ func TestNew(t *testing.T) {
|
|||||||
fmt.Println(lng, lat)
|
fmt.Println(lng, lat)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestInterfaceConverse(t *testing.T) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user