This commit is contained in:
Van0313
2025-07-05 22:21:11 +08:00
parent c4799ea7c6
commit dbf4b34072

View File

@@ -1997,7 +1997,14 @@ public class JDUtil {
wxUtil.sendTextMessage(fromWxid, "AI 评论生成失败", 1, fromWxid, false);
}
// 发送生成的评论文本
wxUtil.sendTextMessage(fromWxid, gptResponse, 1, fromWxid, true);
if (Util.isNotEmpty(gptResponse)) {
String[] split = gptResponse.split("\n");
for (String s : split) {
s = s.replaceAll("1.|2.", "");
wxUtil.sendTextMessage(fromWxid, s, 1, fromWxid, true);
}
}
//wxUtil.sendTextMessage(fromWxid, gptResponse, 1, fromWxid, true);
wxUtil.sendTextMessage(fromWxid, "评论统计:\n" + "型号 " + productType + "\n" + "新增:" + addCommentCount + "\n" + "已使用:" + usedCommentCount + "\n" + "可用:" + canUseComentCount + "\n" + "总数:" + allCommentCount, 1, fromWxid, true);
// 更新评论状态为已使用
commentToUse.setIsUse(1);