This commit is contained in:
cc
2025-01-10 09:13:39 +08:00
parent 7d6dc23266
commit 0dacbfab24

View File

@@ -983,13 +983,13 @@ public class JDUtils {
String[] split = order.split("\r\n");
content.append("电脑端").append("\r\n");
for (String s : split) {
content.append("https://item.jd.com/").append(s).append(".html").append("\r\n");
content.append("https://item.jd.com/").append(s.trim()).append(".html").append("\r\n");
}
wxUtil.sendTextMessage(fromWxid, content.toString(), 1, fromWxid);
content = new StringBuilder();
content.append("手机端").append("\r\n");
for (String s : split) {
content.append("https://item.m.jd.com/product/").append(s).append(".html").append("\r\n");
content.append("https://item.m.jd.com/product/").append(s.trim()).append(".html").append("\r\n");
}
wxUtil.sendTextMessage(fromWxid, content.toString(), 1, fromWxid);
content = new StringBuilder();
@@ -1001,8 +1001,7 @@ public class JDUtils {
order = order.replace("转链", "");
String[] split = order.split("\r\n");
for (String s : split) {
String trim = s.trim();
content.append("https://item.jd.com/").append(trim).append(".html").append("\r\n");
content.append("https://item.jd.com/").append(s.trim()).append(".html").append("\r\n");
}
}
} else {