bug fix
This commit is contained in:
@@ -1269,16 +1269,19 @@ public class JDUtil {
|
||||
|
||||
if (!isCj) {
|
||||
try {
|
||||
String[] lines = message.split("\\r?\\n");
|
||||
if (lines.length > 0) {
|
||||
title = lines[0];
|
||||
// 有的换行了
|
||||
if (lines[1].length() > 3 && !lines[1].contains("u.jd")) {
|
||||
title = title + lines[1];
|
||||
if (!message.equals(url)){
|
||||
String[] lines = message.split("\\r?\\n");
|
||||
if (lines.length > 0) {
|
||||
title = lines[0];
|
||||
// 有的换行了
|
||||
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) {
|
||||
logger.error("文案首行异常", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user