This commit is contained in:
Van0313
2025-04-23 21:42:51 +08:00
parent 999fd713f3
commit 17e592e8ed

View File

@@ -1247,21 +1247,26 @@ public class JDUtil {
} }
//textList.add(String.valueOf(images)); //textList.add(String.valueOf(images));
resultList.add(itemMap); resultList.add(itemMap);
String title = "";
if (!isCj) { if (!isCj) {
String[] lines = message.split("\\r?\\n"); try{
String title = ""; String[] lines = message.split("\\r?\\n");
if (lines.length > 0) { if (lines.length > 0) {
title = lines[0]; title = lines[0];
// 有的换行了 // 有的换行了
if (lines[1].length() > 3 && !lines[1].contains("u.jd")) { if (lines[1].length() > 3 && !lines[1].contains("u.jd")) {
title = title + lines[1]; title = title + lines[1];
}
logger.info("文案首行 {}", title);
title = title.replaceAll("@|所有人", "");
} }
logger.info("文案首行 {}", title); }catch (Exception e){
title = title.replaceAll("@|所有人", ""); logger.error("文案首行异常", e);
} }
/*直接生成闲鱼的商品文案*/ /*直接生成闲鱼的商品文案*/
StringBuilder sb1 = new StringBuilder(); StringBuilder sb1 = new StringBuilder();