作者 yangfu

列表过滤

@@ -288,8 +288,9 @@ func ClearFilesForm(inputFormList []*protocol.Form) (forms []*protocol.Form) { @@ -288,8 +288,9 @@ func ClearFilesForm(inputFormList []*protocol.Form) (forms []*protocol.Form) {
288 288
289 func FormFilter(inputFormList []*protocol.Form, fiters ...Filters) (forms []*protocol.Form) { 289 func FormFilter(inputFormList []*protocol.Form, fiters ...Filters) (forms []*protocol.Form) {
290 for i := range fiters { 290 for i := range fiters {
291 - forms = fiters[i](inputFormList) 291 + inputFormList = fiters[i](inputFormList)
292 } 292 }
  293 + forms = inputFormList
293 return 294 return
294 } 295 }
295 296