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