重构评论
This commit is contained in:
@@ -1784,20 +1784,19 @@ public class JDUtil {
|
||||
wxUtil.sendTextMessage(fromWxid, "没有找到可用的评论数据", 1, fromWxid, false);
|
||||
return;
|
||||
}
|
||||
wxUtil.sendTextMessage(fromWxid, "原评论:\n", 1, fromWxid, false);
|
||||
|
||||
// 调用 DeepSeek 生成新的评论内容
|
||||
String deepSeekPrompt = COMMENT_TEMPLATES_DS + commentToUse.getCommentText();
|
||||
String deepSeekResponse;
|
||||
String deepSeekResponse = "";
|
||||
try {
|
||||
deepSeekResponse = deepSeekClientUtil.getDeepSeekResponse(deepSeekPrompt);
|
||||
} catch (IOException e) {
|
||||
logger.error("生成评论异常 - 用户: {}", fromWxid, e);
|
||||
wxUtil.sendTextMessage(fromWxid, "评论生成失败,请重试", 1, fromWxid, false);
|
||||
return;
|
||||
wxUtil.sendTextMessage(fromWxid, "DS评论生成失败", 1, fromWxid, false);
|
||||
}
|
||||
|
||||
// 发送生成的评论文本
|
||||
wxUtil.sendTextMessage(fromWxid, deepSeekResponse, 1, fromWxid, false);
|
||||
wxUtil.sendTextMessage(fromWxid, "DS回复:\n" + deepSeekResponse, 1, fromWxid, false);
|
||||
|
||||
// 发送图片(如果有)
|
||||
String pictureUrls = commentToUse.getPictureUrls();
|
||||
|
||||
Reference in New Issue
Block a user