This commit is contained in:
邹宗楠
2024-11-26 10:35:48 +08:00
parent 2c47a9cc32
commit d4bcd97e83

View File

@@ -107,8 +107,8 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
}
}
orderFmt += `<BR>
<BOLD>共%d种%d件商品</BOLD>
<B><BOLD>实付:¥%g</BOLD></B>
<BOLD>共%d种%d件商品</BOLD><BR>
<B><BOLD>实付:¥%s</BOLD></B>
<BR>
--------------------------------<BR>
<C><L><BOLD>商品质量问题请联系:</BOLD></L><BR></C>
@@ -120,7 +120,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
--------------------------------<BR>
`
// <QR>http://weixin.qq.com/r/tkkDGzTERmk5rXB49xyk</QR>
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, utils.Int64ToFloat64(order.ActualPayPrice), order.StoreName, storeTel, globals.StoreName)
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice), order.StoreName, storeTel, globals.StoreName)
return fmt.Sprintf(strings.Replace(orderFmt, "\n", "", -1), orderParams...)
}
@@ -196,7 +196,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
}
orderFmt += `<BR>
<B><BOLD>共%d种%d件商品</BOLD></B>
<B><BOLD>实付:¥%g</BOLD></B>
<B><BOLD>实付:¥%s</BOLD></B>
<BR>
--------------------------------<BR>
<C><L><BOLD>商品质量问题请联系:</BOLD></L><BR></C>
@@ -208,7 +208,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
--------------------------------<BR>
`
// <QR>http://weixin.qq.com/r/tkkDGzTERmk5rXB49xyk</QR>
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, utils.Int64ToFloat64(order.ActualPayPrice), order.StoreName, storeTel, globals.StoreName)
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice), order.StoreName, storeTel, globals.StoreName)
return fmt.Sprintf(strings.Replace(orderFmt, "\n", "", -1), orderParams...)
}