aa
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user