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

@@ -193,6 +193,11 @@ func (c *PrinterHandler) getOrderContentV2(order *model.GoodsOrder, storeTel str
}
}
}
if order.BusinessType == model.BusinessTypeDingshida {
orderFmt += `<C><B>预订单</B><C>`
} else {
orderFmt += `<C><B>立即送达</B><C>`
}
orderFmt += `
` + xpyunapi.StrRepeat("-", 32) + `
<L>下单时间: %s
@@ -256,6 +261,11 @@ func (c *PrinterHandler) getOrderContentBigV2(order *model.GoodsOrder, storeTel
}
}
}
if order.BusinessType == model.BusinessTypeDingshida {
orderFmt += `<C><B>预订单</B><C>`
} else {
orderFmt += `<C><B>立即送达</B><C>`
}
orderFmt += `
` + xpyunapi.StrRepeat("-", 32) + `
<HB><L>下单时间: %s
@@ -321,6 +331,11 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
}
}
}
if order.BusinessType == model.BusinessTypeDingshida {
orderFmt += `<C><B>预订单</B><C>`
} else {
orderFmt += `<C><B>立即送达</B><C>`
}
orderFmt += `
` + xpyunapi.StrRepeat("-", 32) + `
<L>下单时间: %s
@@ -401,6 +416,11 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
}
}
}
if order.BusinessType == model.BusinessTypeDingshida {
orderFmt += `<C><B>预订单</B><C>`
} else {
orderFmt += `<C><B>立即送达</B><C>`
}
orderFmt += `
` + xpyunapi.StrRepeat("-", 32) + `
<HB><L>下单时间: %s