diff --git a/README.md b/README.md index 52f7ed6..cd2f91b 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ # 添加依赖 ## Gradle - compile group: 'com.hiczp', name: 'bilibili-api', version: '0.0.9' + compile group: 'com.hiczp', name: 'bilibili-api', version: '0.0.10' # 名词解释 B站不少参数都是瞎取的, 并且不统一, 经常混用, 以下给出一些常见参数对应的含义 diff --git a/src/main/java/com/hiczp/bilibili/api/BilibiliAPI.java b/src/main/java/com/hiczp/bilibili/api/BilibiliAPI.java index 0289deb..febcb21 100644 --- a/src/main/java/com/hiczp/bilibili/api/BilibiliAPI.java +++ b/src/main/java/com/hiczp/bilibili/api/BilibiliAPI.java @@ -63,14 +63,14 @@ public class BilibiliAPI implements BilibiliServiceProvider, BilibiliCaptchaProv this.bilibiliAccount = BilibiliAccount.emptyInstance(); } - public BilibiliAPI(BilibiliAccount bilibiliAccount) { + public BilibiliAPI(BilibiliSecurityContext bilibiliSecurityContext) { this.bilibiliClientProperties = BilibiliClientProperties.defaultSetting(); - this.bilibiliAccount = new BilibiliAccount(bilibiliAccount); + this.bilibiliAccount = new BilibiliAccount(bilibiliSecurityContext); } - public BilibiliAPI(BilibiliClientProperties bilibiliClientProperties, BilibiliAccount bilibiliAccount) { + public BilibiliAPI(BilibiliClientProperties bilibiliClientProperties, BilibiliSecurityContext bilibiliSecurityContext) { this.bilibiliClientProperties = bilibiliClientProperties; - this.bilibiliAccount = new BilibiliAccount(bilibiliAccount); + this.bilibiliAccount = new BilibiliAccount(bilibiliSecurityContext); } @Override