录单
This commit is contained in:
@@ -130,6 +130,8 @@ public class JDUtil {
|
||||
private final ConcurrentHashMap<String, UserInteractionState> userInteractionStates = new ConcurrentHashMap<>();
|
||||
private HashMap<String, String> cacheMap = new HashMap<>();
|
||||
|
||||
//京粉链接
|
||||
private final HashMap<String, String> productWithJF = new HashMap<>();
|
||||
// 构造函数中注入StringRedisTemplate
|
||||
@Autowired
|
||||
public JDUtil(JDOrderRepository jdOrderRepository, StringRedisTemplate redisTemplate, OrderRowRepository orderRowRepository, WXUtil wxUtil, OrderUtil orderUtil, DeepSeekClientUtil deepSeekClientUtil, CommentRepository commentRepository, GPTClientUtil gptClientUtil) {
|
||||
@@ -141,6 +143,13 @@ public class JDUtil {
|
||||
this.deepSeekClientUtil = deepSeekClientUtil;
|
||||
this.commentRepository = commentRepository;
|
||||
this.gptClientUtil = gptClientUtil;
|
||||
handleProductWithJF();
|
||||
}
|
||||
private void handleProductWithJF(){
|
||||
productWithJF.put("ZQD130F-EB130", "https://u.jd.com/3GPePLu");
|
||||
productWithJF.put("ZQD130F-EB130B", "https://u.jd.com/3gPeGf6");
|
||||
productWithJF.put("ZQD180F-EB200", "https://u.jd.com/3OPe8m7");
|
||||
productWithJF.put("ZQD150F-EB150", "https://u.jd.com/3rPevYD");
|
||||
}
|
||||
|
||||
private List<OrderRow> filterOrdersByDate(List<OrderRow> orderRows, int daysBack) {
|
||||
@@ -2297,9 +2306,10 @@ public class JDUtil {
|
||||
for (int i = 3; i < parts.length; i++) {
|
||||
address.append(parts[i]);
|
||||
}
|
||||
String jf = productWithJF.get(modelNumber);
|
||||
|
||||
StringBuilder order = new StringBuilder();
|
||||
order.append("生").append("\n").append("H-TF").append("\n").append(modelNumber).append("\n").append(" ").append("\n").append(quantityStr).append("\n").append(address);
|
||||
order.append("生").append("\n").append("H-TF").append("\n").append(modelNumber).append("\n").append(jf).append("\n").append(quantityStr).append("\n").append(address);
|
||||
sendOrderToWxByOrderD(order.toString(), fromWxid);
|
||||
}
|
||||
} else if (input.startsWith("H")) {
|
||||
|
||||
Reference in New Issue
Block a user