Prechádzať zdrojové kódy

feat: 用户搜索改为后端过滤去重

陈文艺 2 týždňov pred
rodič
commit
a2ff6a67ef

+ 1 - 3
Lanu/Views/Search/LNUserSearchViewController.swift

@@ -66,9 +66,7 @@ extension LNUserSearchViewController {
             if nextTag?.isEmpty != false {
                 curList = list
             } else {
-                curList.append(contentsOf: list.filter({ item in
-                    !self.curList.contains { $0.userNo == item.userNo }
-                }))
+                curList.append(contentsOf: list)
             }
             nextTag = next