- 美团外卖v500打印机格式调整

This commit is contained in:
gazebo
2019-05-06 17:28:19 +08:00
parent b732fe1705
commit cdb0ed6448

View File

@@ -136,8 +136,8 @@ func (c *PrinterHandler) getOrderContent2(order *model.GoodsOrder, storeTel stri
jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
}
for _, sku := range order.Skus {
orderFmt += `%s*`
orderFmt += `%8s%10s%10s*`
orderFmt += `|5%s`
orderFmt += `|5%8s%10s%10s`
orderParams = append(orderParams, sku.SkuName, "x"+utils.Int2Str(sku.Count), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice*int64(sku.Count)))
}
orderFmt += `