diff --git a/README.md b/README.md
index 94695d144cc7ff612449339ea112f95ff0cbb3ad..fa88fbfb8e2f33680c7cf63899d9474b9bffbe90 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,7 @@
1. xxxx
2. xxxx
3. xxxx
+ mvn clean install org.apache.maven.plugins:maven-deploy-plugin:2.8:deploy -DskipTests
#### 使用说明
diff --git a/pom.xml b/pom.xml
index 91445a591de4a7df20e2fd3d576b7a054a93f438..5fdb31762b9072ae7072a3f0fe9195187061f8db 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.qiwenshare
qiwenshare
- 1.2.1
+ 1.2.2
com.qiwenshare
@@ -51,9 +51,10 @@
tomcat-embed-core
+
- commons-fileupload
- commons-fileupload
+ commons-io
+ commons-io
@@ -81,6 +82,7 @@
net.sourceforge.htmlunit
htmlunit
+ 2.62.0
org.bytedeco
@@ -101,6 +103,14 @@
${spring-security.version}
compile
+
+ com.github.stuxuhai
+ jpinyin
+
+
+ cn.hutool
+ hutool-core
+
\ No newline at end of file
diff --git a/src/main/java/com/qiwenshare/common/operation/CrawHtmlOperation.java b/src/main/java/com/qiwenshare/common/operation/CrawHtmlOperation.java
index fd9a43753f575cab7f8470e96d614d196ec52735..56fea817751cc4fb89bbc0f3ee2a765f363573d5 100644
--- a/src/main/java/com/qiwenshare/common/operation/CrawHtmlOperation.java
+++ b/src/main/java/com/qiwenshare/common/operation/CrawHtmlOperation.java
@@ -35,4 +35,8 @@ public class CrawHtmlOperation {
pageXml = StringUtil.replaceBlank(pageXml);
return pageXml;
}
+
+ public static void main(String[] args) {
+ System.out.println(crawHtmlByUrl("https://www.baidu.com/"));
+ }
}
diff --git a/src/main/java/com/qiwenshare/common/operation/FileOperation.java b/src/main/java/com/qiwenshare/common/operation/FileOperation.java
index 95186f31d67a11590e15e2de0696daf91582316e..04d1faff806ceb36291b736a0a8f148fd30986b3 100644
--- a/src/main/java/com/qiwenshare/common/operation/FileOperation.java
+++ b/src/main/java/com/qiwenshare/common/operation/FileOperation.java
@@ -224,7 +224,7 @@ public class FileOperation {
}
archive.extract(in, false, new ExtractCallback(archive,destDirPath));
File destFile = new File(destDirPath);
- Collection files = FileUtils.listFilesAndDirs(destFile, new IOFileFilter() {
+ Collection files = FileUtils.listFiles(destFile, new IOFileFilter() {
@Override
public boolean accept(File file) {
return true;
diff --git a/src/main/java/com/qiwenshare/common/util/MusicUtils.java b/src/main/java/com/qiwenshare/common/util/MusicUtils.java
new file mode 100644
index 0000000000000000000000000000000000000000..c29aefbbfd5b48f963e97ad118f521ef9dd2bd90
--- /dev/null
+++ b/src/main/java/com/qiwenshare/common/util/MusicUtils.java
@@ -0,0 +1,138 @@
+package com.qiwenshare.common.util;
+
+import com.alibaba.fastjson2.JSON;
+import com.github.stuxuhai.jpinyin.PinyinException;
+import com.github.stuxuhai.jpinyin.PinyinFormat;
+import com.github.stuxuhai.jpinyin.PinyinHelper;
+import org.apache.commons.lang3.StringUtils;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class MusicUtils {
+
+
+ public static String getLyc(String singerName, String mp3Name, String albumName) {
+ Map headMap = new HashMap<>();
+ headMap.put("Referer", "https://y.qq.com/");
+ String singer = "";
+ String id = "";
+ String mid = "";
+ boolean isMatch = false;
+ if (StringUtils.isNotEmpty(albumName)) {
+ String s = HttpsUtils.doGetString("https://c.y.qq.com/splcloud/fcgi-bin/smartbox_new.fcg?_=1655481018175&cv=4747474&ct=24&format=json&inCharset=utf-8&outCharset=utf-8¬ice=0&platform=yqq.json&needNewCode=1&uin=0&g_tk_new_20200303=5381&g_tk=5381&hostUin=0&is_xml=0&key=" + albumName, headMap);
+ Map map = JSON.parseObject(s, Map.class);
+ Map data = (Map) map.get("data");
+ Map album = (Map) data.get("album");
+ List