This commit is contained in:
Van0313
2025-04-25 16:13:20 +08:00
parent 39ea8e5859
commit d6110a2d4b

View File

@@ -1269,16 +1269,19 @@ public class JDUtil {
if (!isCj) { if (!isCj) {
try { try {
String[] lines = message.split("\\r?\\n"); if (!message.equals(url)){
if (lines.length > 0) { String[] lines = message.split("\\r?\\n");
title = lines[0]; if (lines.length > 0) {
// 有的换行了 title = lines[0];
if (lines[1].length() > 3 && !lines[1].contains("u.jd")) { // 有的换行了
title = title + lines[1]; if (lines[1].length() > 3 && !lines[1].contains("u.jd")) {
title = title + lines[1];
}
logger.info("文案首行 {}", title);
title = title.replaceAll("@|所有人", "");
} }
logger.info("文案首行 {}", title);
title = title.replaceAll("@|所有人", "");
} }
} catch (Exception e) { } catch (Exception e) {
logger.error("文案首行异常", e); logger.error("文案首行异常", e);
} }