钩子损坏

This commit is contained in:
2026-06-30 09:48:09 +08:00
parent 6a94645076
commit 39bd0901a3

View File

@@ -514,6 +514,7 @@ public interface PrinterImpl {
if (isGift && !orderDetail.getProductName().contains("【赠】")) { if (isGift && !orderDetail.getProductName().contains("【赠】")) {
orderDetail.setProductName("【赠】" + orderDetail.getProductName()); orderDetail.setProductName("【赠】" + orderDetail.getProductName());
} }
if (orderDetail.getProductName().length() > 4) { if (orderDetail.getProductName().length() > 4) {
builder.append(formatLabel(StrUtil.format("{} x {}", orderDetail.getProductName(), orderDetail.getNum().stripTrailingZeros().toPlainString()), signLabelInfo.f, signLabelInfo.center)) builder.append(formatLabel(StrUtil.format("{} x {}", orderDetail.getProductName(), orderDetail.getNum().stripTrailingZeros().toPlainString()), signLabelInfo.f, signLabelInfo.center))
.append(signLabelInfo.br); .append(signLabelInfo.br);