This commit is contained in:
苏尹岚
2020-12-01 18:11:06 +08:00
parent 9df0b76d5d
commit b2dfa0c68e
2 changed files with 21 additions and 4 deletions

View File

@@ -1074,3 +1074,12 @@ func (a *API) StoreSkuBindStore(allStore bool, skuIds, vendorStoreIDs []string)
_, err = a.AccessStorePage2("https://ware.shop.jd.com/rest/storeProduct/skuBindStore", params, true)
return err
}
//订单接单
func (a *API) SetOrderStateToWait(orderId int64) (err error) {
params := map[string]interface{}{
"orderId": orderId,
}
_, err = a.AccessStorePage("https://porder.shop.jd.com/order/global/setOrderStateToWait", params, false)
return err
}

View File

@@ -294,10 +294,10 @@ func TestStoreWareDoUpdate(t *testing.T) {
}
func TestStoreUpdatePrice(t *testing.T) {
err := api.StoreUpdatePrice(80, 10024685331653, "1000063128")
if err != nil {
t.Fatal(err)
}
// err := api.StoreUpdatePrice(80, 10024685331653, "1000063128")
// if err != nil {
// t.Fatal(err)
// }
// t.Log(utils.Format4Output(result, false))
}
@@ -316,3 +316,11 @@ func TestStoreSkuBindStore(t *testing.T) {
}
// t.Log(utils.Format4Output(result, false))
}
func TestSetOrderStateToWait(t *testing.T) {
err := api.SetOrderStateToWait(1)
if err != nil {
t.Fatal(err)
}
// t.Log(utils.Format4Output(result, false))
}