controllers/location.go
@@ -26,7 +26,7 @@ if params.Keyword != "" { search.SetKeyword(params.Keyword) } if params.ParentId != 0 { if params.ParentId != "" { search.SetParentId(params.ParentId) } if params.CompanyId != 0 { @@ -43,7 +43,7 @@ if params.Type == 0 { return errors.New("请选择正确的位置类型") } if params.ParentId < 0 { if params.ParentId == "" { return errors.New("错误参数ParentId") } if params.CompanyId < 0 {