From 3e694a43cc76f62fa93bfc59ad0c919587146d70 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sun, 3 Nov 2024 19:54:13 +0800 Subject: [PATCH] update --- pom.xml | 51 ++++++------------- .../yutou/biliapi/net/WebSocketManager.java | 4 +- .../Controllers/VideoFileController.java | 1 - src/main/resources/application.properties | 1 + .../resources/application.properties.debug | 10 ---- 5 files changed, 19 insertions(+), 48 deletions(-) create mode 100644 src/main/resources/application.properties delete mode 100644 src/main/resources/application.properties.debug diff --git a/pom.xml b/pom.xml index 2094b1c..4151538 100644 --- a/pom.xml +++ b/pom.xml @@ -57,11 +57,6 @@ sqlite-jdbc 3.36.0.3 - - org.projectlombok - lombok - annotationProcessor - org.java-websocket Java-WebSocket @@ -125,6 +120,13 @@ log4j-core 2.24.1 + + + org.projectlombok + lombok + 1.18.34 + provided + @@ -132,25 +134,6 @@ ${project.basedir}/src/test/java ${project.basedir}/target/classes - - org.apache.maven.plugins - maven-antrun-plugin - 1.8 - - org.springframework.boot spring-boot-maven-plugin @@ -160,25 +143,23 @@ com.yutou.BilibiliApplication - - - package - - repackage - - - - - - org.apache.maven.plugins maven-compiler-plugin + 3.8.1 21 21 + UTF-8 + + + org.projectlombok + lombok + 1.18.34 + + diff --git a/src/main/java/com/yutou/biliapi/net/WebSocketManager.java b/src/main/java/com/yutou/biliapi/net/WebSocketManager.java index 4ad0e72..2e235fc 100644 --- a/src/main/java/com/yutou/biliapi/net/WebSocketManager.java +++ b/src/main/java/com/yutou/biliapi/net/WebSocketManager.java @@ -180,7 +180,7 @@ public class WebSocketManager { @Override public void onMessage(ByteBuffer bytes) { - Log.i("WebSocketClientTh.onMessage: " + roomConfig.getAnchorName()); + // Log.i("WebSocketClientTh.onMessage: " + roomConfig.getAnchorName()); super.onMessage(bytes); decompress(bytes.array()); } @@ -223,7 +223,7 @@ public class WebSocketManager { } private void danmu(byte[] bytes) { - Log.i("未压缩:" + new String(bytes)); + //Log.i("未压缩:" + new String(bytes)); } private void unzipDanmu(byte[] bytes, boolean useHeader) { diff --git a/src/main/java/com/yutou/bilibili/Controllers/VideoFileController.java b/src/main/java/com/yutou/bilibili/Controllers/VideoFileController.java index f44017c..6cca067 100644 --- a/src/main/java/com/yutou/bilibili/Controllers/VideoFileController.java +++ b/src/main/java/com/yutou/bilibili/Controllers/VideoFileController.java @@ -74,7 +74,6 @@ public class VideoFileController { public String getTmpImg(String url) { try { // 获取图片流 - System.out.println("url = " + url); InputStream inputStream = new URL(url).openStream(); // 将输入流转换为字节数组 diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..79cab1e --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1 @@ +server.port=8880 \ No newline at end of file diff --git a/src/main/resources/application.properties.debug b/src/main/resources/application.properties.debug deleted file mode 100644 index 331ab8b..0000000 --- a/src/main/resources/application.properties.debug +++ /dev/null @@ -1,10 +0,0 @@ -server.port=8001 -spring.datasource.url=jdbc:mysql://127.0.0.1/database?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8&autoReconnect=true -spring.datasource.username=user -spring.datasource.password=password - -mybatis.mapper-locations=classpath:mappers/*.xml -#mybatis.config-location=classpath:mybatis-config.xml -mybatis.type-aliases-package=com.yutou.tools.mybatis - -#logging.level.com.yutou.bilibili=debug \ No newline at end of file