This commit is contained in:
richboo111
2024-01-09 17:55:21 +08:00
parent cbd7643dbe
commit 4aabb5e6e4
3 changed files with 8 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ import (
//}
//
func TestCancel(t *testing.T) {
cancelResponse, err := dadaapi.CancelOrder("8000051859647401017", ReasonIDClientCanceled, "协商一致")
cancelResponse, err := dadaapi.CancelOrder("88442515379092", ReasonIDClientCanceled, "协商一致")
if err != nil {
t.Fatal(err)
}

View File

@@ -14,7 +14,7 @@ func (a *API) PreCreateOrder(preOrder *PreCreateOrderReq) (price float64, err er
preOrder.PushTime = time.Now().Unix()
preOrder.DevId = a.devId
//preOrder.ShopId = SFShopTestOpenStoreID // 测试用
preOrder.ShopId = SFShopTestOpenStoreID // 测试用
resp := a.HttpPostJson("precreateorder", preOrder)
if resp.HttpStatusCode != HttpStatusSuccessCode {
@@ -42,7 +42,7 @@ func (a *API) CreateOrder(order *CreateOrderReq) (sfOrderID, sfBillID string, to
order.Version = DefaultVersion
order.DevId = a.devId
//order.ShopId = SFShopTestOpenStoreID // 测试用
order.ShopId = SFShopTestOpenStoreID // 测试用
resp := a.HttpPostJson("createorder", order)
if resp.HttpStatusCode != HttpStatusSuccessCode {

View File

@@ -65,7 +65,7 @@ func TestCreateOrder(t *testing.T) {
DevId: AppID,
ShopId: TestSFStoreID,
ShopType: 1,
ShopOrderId: "20240108",
ShopOrderId: "20240109",
OrderSequence: "测试",
OrderSource: OrderSourceELM,
OrderTime: 1694168441,
@@ -135,3 +135,7 @@ func TestNew(t *testing.T) {
fmt.Println(lng, lat)
}
}
func TestInterfaceConverse(t *testing.T) {
}