隐藏测试代码

This commit is contained in:
mazengfei
2026-03-12 11:10:26 +08:00
parent aa96455f66
commit 86c3c07e42
3 changed files with 52 additions and 1 deletions
@@ -51,6 +51,19 @@ class UserViewModel : BaseViewModel() {
// }
// }
fun getUserFace(
pageNo: Int,
pageSize: Int,
callback: (List<UserFaceModel>) -> Unit
) {
launchWithLoading{
val response = repository.getUserFaceCache(pageNum = pageNo, pageSize = pageSize)
val status = parseResponse(response)
if (status) callback(response.data?:emptyList())
else emptyList<UserFaceModel>()
}
}
/**
* 获取人脸数据
*/
@@ -84,7 +97,7 @@ class UserViewModel : BaseViewModel() {
//第一页数据删除本地数据库
faceApi.clearFaceData()
}
faceApi.updateFaceData( pageNo, faceEntityList)
faceApi.updateFaceData(pageNo, faceEntityList)
if (list.size >= pageSize) {
faceTimestamp = list.last().faceUpdateTimestamp ?: 0
currentPageNo++