diff --git a/business/partner/printer/xpyun/xpyun.go b/business/partner/printer/xpyun/xpyun.go
index 9425d9195..461dbfa4f 100644
--- a/business/partner/printer/xpyun/xpyun.go
+++ b/business/partner/printer/xpyun/xpyun.go
@@ -329,15 +329,15 @@ func (c *PrinterHandler) getCancelOrRefundOrderContent(order *model.GoodsOrder,
}
title := ``
if printType == model.YES { // 取消订单
- title = `取消订单详情`
+ title = `取消订单详情
`
} else { // 售后订单
- title = `退款订单详情`
+ title = `退款订单详情
`
}
orderFmt +=
xpyunapi.StrRepeat("-", 32) + `
下单时间: %s
-订单编号: %s
+订单编号: %s
%s#%d
` + title
orderParams = append(orderParams,
@@ -348,7 +348,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContent(order *model.GoodsOrder,
)
orderFmt += xpyunapi.StrRepeat("-", 32)
orderFmt += `共%d种%d件商品
-实际支付:¥%d`
+实际支付:¥%s
`
orderFmt += xpyunapi.StrRepeat("-", 14) + "#%d完" + xpyunapi.StrRepeat("-", 14) + `
`
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice), order.OrderSeq)
return fmt.Sprintf(orderFmt, orderParams...)
@@ -374,15 +374,15 @@ func (c *PrinterHandler) getCancelOrRefundOrderContentBig(order *model.GoodsOrde
}
title := ``
if printType == model.YES { // 取消订单
- title = `取消订单详情`
+ title = `取消订单详情
`
} else { // 售后订单
- title = `退款订单详情`
+ title = `退款订单详情
`
}
orderFmt +=
xpyunapi.StrRepeat("-", 32) + `
下单时间: %s
-订单编号: %s
+订单编号: %s
%s#%d
` + title
orderParams = append(orderParams,
@@ -393,7 +393,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContentBig(order *model.GoodsOrde
)
orderFmt += xpyunapi.StrRepeat("-", 32)
orderFmt += `共%d种%d件商品
-实际支付:¥%d`
+实际支付:¥%s
`
orderFmt += xpyunapi.StrRepeat("-", 14) + "#%d完" + xpyunapi.StrRepeat("-", 14) + `
`
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice), order.OrderSeq)
return fmt.Sprintf(orderFmt, orderParams...)