This commit is contained in:
Van0313
2025-04-23 21:26:06 +08:00
parent 35a8f79b54
commit 999fd713f3

View File

@@ -1250,13 +1250,17 @@ public class JDUtil {
if (!isCj) { if (!isCj) {
String[] lines = message.split("\\r?\\n"); String[] lines = message.split("\\r?\\n");
String title = lines.length > 0 ? lines[0] : ""; String title = "";
// 有的换行了 if (lines.length > 0) {
if (lines[1].length() > 3 && !lines[1].contains("u.jd")) { title = lines[0];
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("@|所有人", "");
/*直接生成闲鱼的商品文案*/ /*直接生成闲鱼的商品文案*/
StringBuilder sb1 = new StringBuilder(); StringBuilder sb1 = new StringBuilder();