update sa-token 1.30.0 => 1.31.0

This commit is contained in:
疯狂的狮子li
2022-10-08 13:54:55 +08:00
parent 84e377dfc4
commit cd107fbef5
7 changed files with 19 additions and 14 deletions

View File

@@ -168,10 +168,9 @@ public class PlusSaTokenDao implements SaTokenDao {
* 搜索数据
*/
@Override
public List<String> searchData(String prefix, String keyword, int start, int size) {
public List<String> searchData(String prefix, String keyword, int start, int size, boolean sortType) {
Collection<String> keys = RedisUtils.keys(prefix + "*" + keyword + "*");
List<String> list = new ArrayList<>(keys);
return SaFoxUtil.searchList(list, start, size);
return SaFoxUtil.searchList(list, start, size, sortType);
}
}