搜索商品修改

This commit is contained in:
苏尹岚
2020-05-22 14:36:11 +08:00
parent a01b226a19
commit 656908e36f
2 changed files with 22 additions and 7 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("红薯", 0, 0)
if err != nil {
t.Fatal(err)
}
@@ -377,9 +377,10 @@ func TestUpdateWareMarketPrice(t *testing.T) {
// t.Log(utils.Format4Output(result, false))
}
func TestBB(t *testing.T) {
result, _ := api.SearchWare4Valid("")
for _, v := range result.Data {
api.UpdateWareMarketPrice(v.WareID, 500)
func TestFindOpReason(t *testing.T) {
err := api.FindOpReason(14519009105)
if err != nil {
t.Fatal(err)
}
// t.Log(utils.Format4Output(result, false))
}