diff --git a/platformapi/dadaapi/order_test.go b/platformapi/dadaapi/order_test.go index e3605ba6..7cd79f56 100644 --- a/platformapi/dadaapi/order_test.go +++ b/platformapi/dadaapi/order_test.go @@ -40,7 +40,7 @@ func TestAddOrderAfterQuery(t *testing.T) { } func TestCancel(t *testing.T) { - cancelResponse, err := dadaapi.CancelOrder("88330338129212", ReasonIDOther, "接单时间过长") + cancelResponse, err := dadaapi.CancelOrder("129178201000000002", ReasonIDOther, "协商一致") if err != nil { t.Fatal(err) } diff --git a/platformapi/jdshopapi/callback.go b/platformapi/jdshopapi/callback.go index b4608584..13db5213 100644 --- a/platformapi/jdshopapi/callback.go +++ b/platformapi/jdshopapi/callback.go @@ -1,6 +1,7 @@ package jdshopapi import ( + "fmt" "io/ioutil" "net/http" @@ -21,6 +22,8 @@ func (a *API) GetCallbackMsg(request *http.Request) (call *GetOrderResult, err e return nil, err } mapData := utils.URLValues2Map(values) + fmt.Println("test1", utils.Format4Output(mapData, false)) utils.Map2StructByJson(mapData, &call, false) + fmt.Println("test2", utils.Format4Output(call, false)) return call, err } diff --git a/platformapi/jdshopapi/order.go b/platformapi/jdshopapi/order.go index 5799a31e..40519aee 100644 --- a/platformapi/jdshopapi/order.go +++ b/platformapi/jdshopapi/order.go @@ -97,7 +97,7 @@ func (a *API) GetOrder(orderID int64) (getOrderResult *GetOrderResult, err error orderPayment,freightPrice,orderState,orderStateRemark, orderStartTime,orderEndTime,orderRemark,consigneeInfo, itemInfoList,pauseBizInfo`, - "order_state": "WAIT_SELLER_STOCK_OUT,PAUSE", + // "order_state": "WAIT_SELLER_STOCK_OUT,PAUSE", }) if err == nil { utils.Map2StructByJson(result["jingdong_pop_order_get_responce"].(map[string]interface{})["orderDetailInfo"].(map[string]interface{})["orderInfo"], &getOrderResult, false)