BoyLove: fix error on empty result (#14526)

This commit is contained in:
stevenyomi 2022-12-13 11:43:34 +08:00 committed by GitHub
parent eed6e861c7
commit 0a5c7513a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'BoyLove'
pkgNameSuffix = 'zh.boylove'
extClass = '.BoyLove'
extVersionCode = 7
extVersionCode = 8
isNsfw = true
}

View File

@ -66,7 +66,7 @@ class ChapterDto(
private val dateFormat by lazy { SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ENGLISH) }
@Serializable
class ListPageDto<T>(val lastPage: Boolean, val list: List<T>)
class ListPageDto<T>(val lastPage: Boolean, val list: List<T> = emptyList())
@Serializable
class ResultDto<T>(val result: T)