京东商城删除sku错误返回修改
This commit is contained in:
@@ -85,7 +85,7 @@ func TestGetDistricts(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetCoordinateFromAddress(t *testing.T) {
|
||||
lng, lat, districtCode := autonaviAPI.GetCoordinateFromAddress("江西赣州市章贡区赣州经济技术开发区国际企业中心赣州国际企业中心13栋A502(华坚路大门右拐)", "")
|
||||
lng, lat, districtCode := autonaviAPI.GetCoordinateFromAddress("北京昌平区城区军民路1号院", "")
|
||||
t.Logf("lng:%f, lat:%f, districtCode:%d", lng, lat, districtCode)
|
||||
}
|
||||
|
||||
|
||||
@@ -499,7 +499,7 @@ func (a *API) UpdateSkus(updateSkusParam *UpdateSkusParam) (vendorSkuID string,
|
||||
//删除sku
|
||||
//https://open.jd.com/home/home#/doc/api?apiCateId=48&apiId=1323&apiName=jingdong.sku.write.deleteSku
|
||||
func (a *API) DeleteSku(skuId int64) (err error) {
|
||||
_, err = a.AccessAPI2("jingdong.sku.write.deleteSku", prodURL, map[string]interface{}{
|
||||
_, err = a.AccessAPI("jingdong.sku.write.deleteSku", prodURL, map[string]interface{}{
|
||||
"skuId": skuId,
|
||||
})
|
||||
return err
|
||||
|
||||
@@ -3,8 +3,8 @@ package jdshopapi
|
||||
import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
@@ -49,7 +49,7 @@ func TestGetProvince(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetCity(t *testing.T) {
|
||||
result, err := api.GetCity(4)
|
||||
result, err := api.GetCity(2)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -57,7 +57,7 @@ func TestGetCity(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetCounty(t *testing.T) {
|
||||
result, err := api.GetCounty(50953)
|
||||
result, err := api.GetCounty(2822)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -97,5 +97,5 @@ func TestFindStoreInfoByExtStoreId(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestWIREHL(t *testing.T) {
|
||||
fmt.Println(time.Now().Sub(utils.Str2Time("2020-06-29 00:00:00")) > 24*time.Hour)
|
||||
fmt.Println(strings.Contains("上海市", "上海"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user