京东商城

This commit is contained in:
苏尹岚
2020-05-21 09:26:57 +08:00
parent 4d50502e65
commit ce5c226500
4 changed files with 60 additions and 19 deletions

View File

@@ -307,7 +307,7 @@ func TestImageUpdate(t *testing.T) {
}
func TestSearchWare4Valid(t *testing.T) {
result, err := api.SearchWare4Valid("红薯")
result, err := api.SearchWare4Valid("")
if err != nil {
t.Fatal(err)
}
@@ -368,3 +368,18 @@ func TestFindSkuById(t *testing.T) {
}
t.Log(utils.Format4Output(result, false))
}
func TestUpdateWareMarketPrice(t *testing.T) {
err := api.UpdateWareMarketPrice(14539778638, 500)
if err != nil {
t.Fatal(err)
}
// t.Log(utils.Format4Output(result, false))
}
func TestBB(t *testing.T) {
result, _ := api.SearchWare4Valid("")
for _, v := range result.Data {
api.UpdateWareMarketPrice(v.WareID, 500)
}
}