新版改版:
新增B站接口 测试直播WebSocket
This commit is contained in:
@@ -35,12 +35,16 @@ public class BiliBiliLoginDatabase extends SQLiteManager {
|
||||
return this;
|
||||
}
|
||||
|
||||
public List<LoginCookie> get() {
|
||||
return super.get(cookie.getTableName(), LoginCookie.class);
|
||||
public LoginCookie get() {
|
||||
List<LoginCookie> list = super.get(cookie.getTableName(), LoginCookie.class);
|
||||
if (!list.isEmpty()) {
|
||||
return list.get(0);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LoginCookie getDataBean() {
|
||||
protected LoginCookie getDataBean() {
|
||||
return new LoginCookie();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user