完善直播WebSocket相关内容
完善弹幕解析
This commit is contained in:
@@ -35,6 +35,10 @@ public class BaseApi {
|
||||
this.headers = headers;
|
||||
return this;
|
||||
}
|
||||
public void addHeader(HashMap<String,String> headers){
|
||||
this.headers.putAll(headers);
|
||||
}
|
||||
|
||||
|
||||
public BaseApi setParams(HashMap<String, String> params) {
|
||||
this.params = params;
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class Log {
|
||||
private static Logger logger;
|
||||
private static Logger logger=Logger.getLogger("Biliob");
|
||||
|
||||
public static void i(String tag, Object log) {
|
||||
i('[' + tag + ']' + log);
|
||||
@@ -18,6 +18,7 @@ public class Log {
|
||||
if (!((boolean) ConfigTools.load(ConfigTools.CONFIG, "logcat"))) {
|
||||
return;
|
||||
}
|
||||
// logger.log(Level.INFO, log.toString());
|
||||
System.out.printf("[%s]%s%n",
|
||||
AppTools.getToDayNowTimeToString(),
|
||||
log
|
||||
|
||||
@@ -14,6 +14,7 @@ import java.util.Set;
|
||||
|
||||
public class RedisTools {
|
||||
public static final int QQBOT_USER = 3;
|
||||
public static final String BILI_USER_BUVID = "bili_user_buvid";
|
||||
private static boolean isNotInstallRedis = false;
|
||||
private static String host;
|
||||
private static int port;
|
||||
@@ -28,7 +29,7 @@ public class RedisTools {
|
||||
//Properties properties = PropertyUtil.loadProperties("jedis.properties");
|
||||
//host = properties.getProperty("redis.host");
|
||||
//port = Integer.valueOf(properties.getProperty("redis.port"));
|
||||
host = "127.0.0.1";
|
||||
host = "172.22.81.254";
|
||||
port = 6379;
|
||||
}
|
||||
|
||||
@@ -74,7 +75,7 @@ public class RedisTools {
|
||||
}
|
||||
|
||||
public static String get(String key, int dbIndex) {
|
||||
String value = "-999";
|
||||
String value = null;
|
||||
if (isNotInstallRedis) {
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user