diff --git a/platformapi/mtwmapi/mtwmapi_test.go b/platformapi/mtwmapi/mtwmapi_test.go index a0c5a75b..f5ff41d2 100644 --- a/platformapi/mtwmapi/mtwmapi_test.go +++ b/platformapi/mtwmapi/mtwmapi_test.go @@ -20,13 +20,13 @@ func init() { baseapi.Init(sugarLogger) // 菜市 - api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "") + //api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "") // 果园 //api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "") //商超 - //api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_s_eXEi_n4M9EIM8noEJAOQ") //token_n4TwqCntWWuvQwAawzxC0w + api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_rxzM5HT4X9IbdrOI5wBI1w") //token_n4TwqCntWWuvQwAawzxC0w //cookieStr := ` // acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1; //` diff --git a/platformapi/mtwmapi/order_test.go b/platformapi/mtwmapi/order_test.go index 1d3a1662..18ca722a 100644 --- a/platformapi/mtwmapi/order_test.go +++ b/platformapi/mtwmapi/order_test.go @@ -249,3 +249,16 @@ func TestApplyCompensation(t *testing.T) { fmt.Println(err.Error()) } } + +func TestOrderStatusAndPsInfo(t *testing.T) { + api.OrderStatusAndPsInfo(map[string]interface{}{ + "order_id": "2801206020864396574", + "third_carrier_order_id": "2801206020864396574", + "courier_name": "王勇", + "courier_phone": "18180822681", + "logistics_status": "40", + "latitude": "30.549650", + "longitude": "104.260709", + "logistics_provider_code": "10017", + }) +} diff --git a/platformapi/tao_vegetable/store_sku.go b/platformapi/tao_vegetable/store_sku.go index 940c1192..3d500e22 100644 --- a/platformapi/tao_vegetable/store_sku.go +++ b/platformapi/tao_vegetable/store_sku.go @@ -47,9 +47,11 @@ func (a *API) AddStoreSku(param *request.AlibabaWdkSkuAddRequest) (*[]VegetableR // UpdateStoreSku 更新门店商品 func (a *API) UpdateStoreSku(param *request.AlibabaWdkSkuUpdateRequest) (*[]VegetableResultList, error) { + globals.SugarLogger.Debugf("============param := %s", utils.Format4Output(param, false)) client := ability585.NewAbility585(&a.client) data, _ := client.AlibabaWdkSkuUpdate(param, a.token) + globals.SugarLogger.Debugf("============data := %s", utils.Format4Output(data, false)) if !*data.Result.Success { return nil, fmt.Errorf(*data.Result.ErrMsg) } diff --git a/platformapi/tao_vegetable/store_sku_test.go b/platformapi/tao_vegetable/store_sku_test.go index 9345d64f..3eb04f61 100644 --- a/platformapi/tao_vegetable/store_sku_test.go +++ b/platformapi/tao_vegetable/store_sku_test.go @@ -113,7 +113,7 @@ func TestAddStoreSku(t *testing.T) { } func TestUpdateSku(t *testing.T) { - StoreIds1 := "JX667149" + StoreIds1 := "JX668428" storeCode := strings.Split(StoreIds1, ",") for _, v := range storeCode { diff --git a/platformapi/tencent_map/tencent_test.go b/platformapi/tencent_map/tencent_test.go index 2d3f4b55..fad82399 100644 --- a/platformapi/tencent_map/tencent_test.go +++ b/platformapi/tencent_map/tencent_test.go @@ -70,7 +70,7 @@ func TestGeoCodeRegeoSingle(t *testing.T) { // 获取全国行政区划 List func TestGetDistricts(t *testing.T) { - result, err := tencent.GetDistricts(2, "510000", 2) + result, err := tencent.GetDistricts(2, "419001", 0) if err != nil { t.Log(err) } else {