This commit is contained in:
Van0313
2025-05-17 20:42:59 +08:00
parent 2347a46453
commit e4fccb5820

View File

@@ -1612,7 +1612,7 @@ public class JDUtil {
//String value = entry.getValue();
productTypeStr.append(" ").append(k).append("\n");
}
wxUtil.sendTextMessage(fromWxid, "请选择要生成的评论类型:\n " + productTypeStr, 1, fromWxid, false);
wxUtil.sendTextMessage(fromWxid, "请选择要生成的评论类型:\n " + productTypeStr, 1, fromWxid, true);
logger.info("进入生成评论流程 - 用户: {}", fromWxid);
} catch (Exception e) {
@@ -1708,7 +1708,7 @@ public class JDUtil {
// ✅ 关键修改:重新从数据库中查询,而不是使用内存中的 fetchedComments
availableComments = commentRepository.findByProductIdAndIsUseNotAndPictureUrlsIsNotNull(product_id, 1);
if (!availableComments.isEmpty()) {
addCommentCount = canUseComentCount - availableComments.size();
addCommentCount = availableComments.size() - canUseComentCount;
Collections.shuffle(availableComments);
commentToUse = availableComments.get(0);
}