This commit is contained in:
邹宗楠
2025-08-07 16:55:20 +08:00
parent b15f7ac442
commit 99ad4b5f97
8 changed files with 157 additions and 33 deletions

View File

@@ -54,8 +54,13 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
}
orderFmt += `
<C>手机买菜上京西</C>
<C>极速到家送惊喜</C><RN>
********************************
<C>极速到家送惊喜</C><RN>`
if order.BusinessType == model.BusinessTypeDingshida {
orderFmt += `<C>预订单</C><RN>`
} else {
orderFmt += `<C>立即送达</C><RN>`
}
orderFmt += `********************************
下单时间: %s<RN>
预计送达: %s<RN>
订单编号: %s<RN>
@@ -133,8 +138,13 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
}
orderFmt += `
<C>手机买菜上京西</C>
<C>极速到家送惊喜</C><RN>
********************************
<C>极速到家送惊喜</C><RN>`
if order.BusinessType == model.BusinessTypeDingshida {
orderFmt += `<C>预订单</C><RN>`
} else {
orderFmt += `<C>立即送达</C><RN>`
}
orderFmt += `********************************
<S2>下单时间: %s<RN><RN></S2>
<S2>预计送达: %s<RN><RN></S2>
<S2>订单编号: %s<RN></S2>