- 易联云打印订单排版完成
This commit is contained in:
@@ -34,14 +34,13 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
|||||||
}
|
}
|
||||||
orderFmt := `
|
orderFmt := `
|
||||||
<FS2><center>京西菜市</center></FS2>\n\n
|
<FS2><center>京西菜市</center></FS2>\n\n
|
||||||
<center>手机买菜上京西</center>\n
|
<center>手机买菜上京西</center>
|
||||||
<center>极速到家送惊喜</center>\n
|
<center>极速到家送惊喜</center>\n
|
||||||
--------------------------------\n
|
--------------------------------
|
||||||
下单时间: %s\n
|
下单时间: %s\n
|
||||||
预计送达: %s\n
|
预计送达: %s\n
|
||||||
订单编号: %s\n
|
订单编号: %s\n
|
||||||
\n
|
\n
|
||||||
|
|
||||||
<FS2>%s#%d</FS2>\n\n
|
<FS2>%s#%d</FS2>\n\n
|
||||||
<QR>%s</QR>
|
<QR>%s</QR>
|
||||||
\n
|
\n
|
||||||
@@ -52,7 +51,6 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
|||||||
客户备注: \n
|
客户备注: \n
|
||||||
<FS2>%s</FS2>\n
|
<FS2>%s</FS2>\n
|
||||||
\n
|
\n
|
||||||
|
|
||||||
<FB>实际支付:</FB>%s\n
|
<FB>实际支付:</FB>%s\n
|
||||||
\n
|
\n
|
||||||
商品明细: \n
|
商品明细: \n
|
||||||
@@ -81,20 +79,16 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
|||||||
<FB>共%d种%d件商品</FB>
|
<FB>共%d种%d件商品</FB>
|
||||||
\n
|
\n
|
||||||
--------------------------------\n
|
--------------------------------\n
|
||||||
<center<FB>商品质量问题请联系:</FB>\n</center>
|
<center><FB>商品质量问题请联系:</FB></center>
|
||||||
<center><FB>%s:%s</FB>\n</center>\n
|
<center><FB>%s:%s</FB></center>\n
|
||||||
\n
|
|
||||||
官方服务热线: 18011516898\n
|
官方服务热线: 18011516898\n
|
||||||
更多信息请关注官方微信: 京西菜市\n
|
更多信息请关注官方微信: 京西菜市\n
|
||||||
\n
|
|
||||||
\n\n
|
|
||||||
--------------------------------\n
|
--------------------------------\n
|
||||||
--------------------------------\n
|
--------------------------------\n
|
||||||
\n\n
|
|
||||||
`
|
`
|
||||||
// <QR>http://weixin.qq.com/r/tkkDGzTERmk5rXB49xyk</QR>
|
// <QR>http://weixin.qq.com/r/tkkDGzTERmk5rXB49xyk</QR>
|
||||||
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, order.StoreName, storeTel)
|
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, order.StoreName, storeTel)
|
||||||
return fmt.Sprintf(strings.Replace(orderFmt, "\n", "", -1), orderParams...)
|
return strings.Replace(fmt.Sprintf(strings.Replace(orderFmt, "\n", "", -1), orderParams...), "\\n", "\r\n", -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *PrinterHandler) GetVendorID() int {
|
func (c *PrinterHandler) GetVendorID() int {
|
||||||
|
|||||||
Reference in New Issue
Block a user