aa
This commit is contained in:
@@ -254,7 +254,7 @@ func (a *API) QueryPageBrandInfo(pageNo, pageSize int, brandId int64, brandName
|
||||
if brandId != 0 {
|
||||
params[KeyBrandId] = brandId
|
||||
}
|
||||
if brandName == "" {
|
||||
if brandName != "" {
|
||||
params[KeyBrandName] = brandName
|
||||
}
|
||||
|
||||
|
||||
@@ -9,14 +9,14 @@ import (
|
||||
)
|
||||
|
||||
func TestQueryPageBrandInfo(t *testing.T) {
|
||||
result, _, err := api.QueryPageBrandInfo(0, 0, 0, "")
|
||||
result, _, err := api.QueryPageBrandInfo(0, 0, 0, "京西")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if len(result) == 0 {
|
||||
t.Fatal("QueryPageBrandInfo brand list is empty!")
|
||||
}
|
||||
// baseapi.SugarLogger.Debug(result[0])
|
||||
baseapi.SugarLogger.Debug(utils.Format4Output(result, false), err)
|
||||
}
|
||||
|
||||
func TestQueryCategoriesByOrgCode(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user