京东商城删除sku错误返回修改

This commit is contained in:
苏尹岚
2020-06-30 15:01:29 +08:00
parent 62f9947573
commit 9a208a019b
3 changed files with 6 additions and 6 deletions

View File

@@ -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("上海市", "上海"))
}