拼多多地址
This commit is contained in:
@@ -50,6 +50,7 @@ import java.util.stream.Stream;
|
||||
|
||||
import static cn.van.business.util.JDUtil.UserInteractionState.GiftMoneyStep.*;
|
||||
import static cn.van.business.util.JDUtil.UserInteractionState.ProcessState.INIT;
|
||||
import static cn.van.business.util.WXUtil.chatRoom_BY;
|
||||
import static cn.van.business.util.WXUtil.super_admins;
|
||||
|
||||
/**
|
||||
@@ -186,6 +187,36 @@ public class JDUtil {
|
||||
// 具体逻辑
|
||||
}
|
||||
|
||||
public void cjwlm(String message) {
|
||||
logger.info("执行 cjwlm 方法,order: {}", message);
|
||||
if (message.contains("https://u.jd")) {
|
||||
// 2. 生成推广内容
|
||||
HashMap<String, List<String>> contentResult = generatePromotionContent(message);
|
||||
|
||||
// 3. 发送文本内容
|
||||
for (String text : contentResult.get("text")) {
|
||||
wxUtil.sendTextMessage(chatRoom_BY, text, 1, chatRoom_BY, true);
|
||||
}
|
||||
|
||||
// 4. 发送图片(如果有)
|
||||
List<String> images = contentResult.get("images");
|
||||
if (images != null) {
|
||||
try {
|
||||
Thread.sleep(6000);
|
||||
} catch (InterruptedException ignored) {
|
||||
|
||||
}
|
||||
for (String imageUrl : images) {
|
||||
if (imageUrl != null) {
|
||||
wxUtil.sendImageMessage(chatRoom_BY, imageUrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// 具体逻辑
|
||||
}
|
||||
|
||||
private OrderStats calculateStats(List<OrderRow> orders) {
|
||||
long paid = orders.stream().filter(o -> o.getValidCode() == 16).count();
|
||||
long pending = orders.stream().filter(o -> o.getValidCode() == 15).count();
|
||||
|
||||
Reference in New Issue
Block a user