fix: 云存档我的下载列表存档无法删除 https://jira.shanqu.cc/browse/CWZS-146

Signed-off-by: chenjuntao <chenjuntao@ghzhushou.com>
This commit is contained in:
chenjuntao
2024-02-21 11:53:47 +08:00
parent b8fced4237
commit 702f9e009b
3 changed files with 7 additions and 3 deletions

View File

@ -127,7 +127,7 @@ class MyArchiveViewModel(
override fun provideDataSingle(page: Int): Single<MutableList<ArchiveEntity>>? {
return if (mType == MyArchiveFragment.Type.MY_DOWNLOAD_ARCHIVE) {
mNewApi.getArchivesDownloadHistories(gameId, page, 20)
mNewApi.getArchivesDownloadHistories(gameId, page, 20, System.currentTimeMillis().toString())
} else {
null
}

View File

@ -3065,7 +3065,11 @@ public interface ApiService {
* 获取存档下载记录
*/
@GET("/users/games/{game_id}/archives/download/histories")
Single<List<ArchiveEntity>> getArchivesDownloadHistories(@Path("game_id") String gameId, @Query("page") int page, @Query("page_size") int pageSize);
Single<List<ArchiveEntity>> getArchivesDownloadHistories(
@Path("game_id") String gameId,
@Query("page") int page,
@Query("page_size") int pageSize,
@Query("timestamp") String timestamp);
/**
* 获取偏好设置(分类标签)的配置数据及用户状态