1
This commit is contained in:
@@ -23,7 +23,7 @@ func (a *API) GetStoreAllCategory() ([]*CategoryInfo, error) {
|
||||
result := make([]*CategoryInfo, 0)
|
||||
for _, v := range parent.ChildCategorys {
|
||||
childNode, err := a.GetStoreCategoryInfo(v.Code)
|
||||
if err != nil || len(childNode.ChildCategorys) == 0 {
|
||||
if err != nil || childNode == nil {
|
||||
result = append(result, &CategoryInfo{
|
||||
ChildCategorys: nil,
|
||||
Code: v.Code,
|
||||
|
||||
Reference in New Issue
Block a user