This commit is contained in:
邹宗楠
2023-07-28 20:09:57 +08:00
parent 86d1bc5bee
commit 78887ca68a
5 changed files with 34 additions and 18 deletions

View File

@@ -46,9 +46,16 @@ func TestGetStoreCategory(t *testing.T) {
}
func TestGetStoreAllCategory(t *testing.T) {
data, err := apiTao.GetStoreAllCategory()
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
globals.SugarLogger.Debugf("err := %s", utils.Format4Output(err, false))
data, _ := apiTao.GetStoreAllCategory()
for _, v := range data {
if v.ChildCategorys != nil {
for _, v2 := range v.ChildCategorys {
globals.SugarLogger.Debugf("%s", utils.Format4Output(v2, false))
}
}
}
}
func TestAddCategory(t *testing.T) {