修复首页->推荐API经常抛出异常的BUG

This commit is contained in:
duzhaokun123 2020-04-10 17:07:43 +08:00
parent 5a2b1f5f48
commit 760bbe47bf
5 changed files with 11 additions and 5 deletions

View File

@ -5,7 +5,13 @@
# 使用
```groovy
compile group: 'com.hiczp', name: 'bilibili-api', version: '0.2.0'
compile group: 'com.hiczp', name: 'bilibili-api', version: '0.2.1'
```
对于 Android 项目, 如需要解析弹幕, 添加
```groovy
compile group: 'javax.xml.stream', name: 'stax-api' version: last_version
compile group: 'org.codehaus.woodstox', name: 'woodstox-core-asl' version: last_version
```
# 技术说明

View File

@ -16,7 +16,7 @@ buildscript {
}
group = 'com.hiczp'
version = '0.2.0'
version = '0.2.1'
description = 'Bilibili Android client API library for Kotlin'
apply plugin: 'kotlin'

View File

@ -1,4 +1,4 @@
package com.hiczp.bilibili.api.thirdpart.commons;
package com.hiczp.bilibili.api.commons;
//用于减少包引入

View File

@ -1,6 +1,6 @@
package com.hiczp.bilibili.api
import com.hiczp.bilibili.api.thirdpart.commons.BoundedInputStream
import com.hiczp.bilibili.api.commons.BoundedInputStream
import io.ktor.util.InternalAPI
import io.ktor.utils.io.errors.EOFException
import java.io.InputStream

View File

@ -134,7 +134,7 @@ data class HomePage(
@SerializedName("creative_content")
var creativeContent: CreativeContent,
@SerializedName("creative_id")
var creativeId: Int, // 6578071
var creativeId: Long, // 6578071
@SerializedName("creative_type")
var creativeType: Int, // 2
@SerializedName("extra")