取消订单查询
This commit is contained in:
@@ -75,7 +75,7 @@ const (
|
|||||||
AfsReasonTypeGoodsAbsent = 210 // 商家通知我缺货
|
AfsReasonTypeGoodsAbsent = 210 // 商家通知我缺货
|
||||||
AfsReasonTypeGoodsSizeNoSame = 302 // 大小尺寸与商品描述不符
|
AfsReasonTypeGoodsSizeNoSame = 302 // 大小尺寸与商品描述不符
|
||||||
AfsReasonTypeGoodsColorNoSame = 303 // 实物与原图不符
|
AfsReasonTypeGoodsColorNoSame = 303 // 实物与原图不符
|
||||||
AfsReasonWrongPurchase = 402 // 不想要了
|
AfsReasonWrongPurchase = 402 // 不想要了 //此原因已剔除
|
||||||
AfsReasonNotReceivedIntime = 502 // 未在时效内送达
|
AfsReasonNotReceivedIntime = 502 // 未在时效内送达
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ func (a *API) GetOrder(orderID int64, isStatus bool) (getOrderResult *GetOrderRe
|
|||||||
orderStartTime,orderEndTime,orderRemark,consigneeInfo,
|
orderStartTime,orderEndTime,orderRemark,consigneeInfo,
|
||||||
itemInfoList,pauseBizInfo,pin,idSopShipmenttype`
|
itemInfoList,pauseBizInfo,pin,idSopShipmenttype`
|
||||||
if isStatus {
|
if isStatus {
|
||||||
params["order_state"] = "WAIT_SELLER_STOCK_OUT,PAUSE"
|
params["order_state"] = "WAIT_SELLER_STOCK_OUT,PAUSE,TRADE_CANCELED"
|
||||||
}
|
}
|
||||||
result, err := a.AccessAPI("jingdong.pop.order.get", prodURL, params)
|
result, err := a.AccessAPI("jingdong.pop.order.get", prodURL, params)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ import (
|
|||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
@@ -45,18 +43,16 @@ func TestNewInfoList(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test11(t *testing.T) {
|
func Test11(t *testing.T) {
|
||||||
request, _ := http.NewRequest(http.MethodGet, "https://stores.shop.jd.com/stores/updateStoreStatus?storeId=24339301&storeStatus=1", nil)
|
type StrA struct {
|
||||||
c := &http.Cookie{
|
Cat string `json:"cat"`
|
||||||
Name: "thor",
|
Dog int `json:"dog,omitempty"`
|
||||||
Value: "80FAF09E9A09B6E618A68057BDFCFCB88A0E4CE7743FBEC84F10D992F9C6A4119DF98DA3CAAE9C7F17BEB62884625B4E7BC82422A90F45F02EA293572D951B055EF0B5F603AEA568DFD4234138F841EC1AC1F67B30B48AAC9EAD5FBAE7943E1DCC99E99D8358C82F7832B71A2BCB31624E16BBF561720443DE966BDA3588406233A90224D9089710B102AA98B979B9B3",
|
Mouse int `json:"mouse"`
|
||||||
}
|
}
|
||||||
request.AddCookie(c)
|
a := &StrA{
|
||||||
client := &http.Client{}
|
Cat: "加菲",
|
||||||
fmt.Println("test1", request.URL)
|
}
|
||||||
response, _ := client.Do(request)
|
fmt.Println(utils.Format4Output(a, false))
|
||||||
defer response.Body.Close()
|
fmt.Println(a.Dog == 0, a.Mouse)
|
||||||
bodyData, _ := ioutil.ReadAll(response.Body)
|
|
||||||
fmt.Println("test1", string(bodyData))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAllOrders(t *testing.T) {
|
func TestAllOrders(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user