增加打印大字体的功能

This commit is contained in:
Rosy-zhudan
2019-08-19 18:09:03 +08:00
parent 59f07b567a
commit 10da91668f
9 changed files with 452 additions and 11 deletions

View File

@@ -18,16 +18,17 @@ func init() {
testinit.Init()
}
func TestGetCityShops(t *testing.T) {
orderID := "919864156000342"
func TestPrintMsg(t *testing.T) {
orderID := "910838879000442"
vendorID := 0
order, err := partner.CurOrderManager.LoadOrder(orderID, vendorID)
if err != nil {
t.Fatal(err)
}
context := CurPrinterHandler.getOrderContent(order, "mobile")
status, err := CurPrinterHandler.PrintMsg(jxcontext.AdminCtx, "id1", "id2", "title", context)
context := CurPrinterHandler.getOrderContent(order, "13412345678")
//context := CurPrinterHandler.getOrderContentBig(order, "13412345678")
status, err := CurPrinterHandler.PrintMsg(jxcontext.AdminCtx, "218510310", "ztdpveyg", "test", context)
t.Log(utils.Format4Output(status, false))
if err != nil {
t.Fatal(err)
@@ -35,7 +36,7 @@ func TestGetCityShops(t *testing.T) {
}
func TestRegisterPrinter(t *testing.T) {
newID1, newID2, err := CurPrinterHandler.RegisterPrinter(jxcontext.AdminCtx, "id1", "id2", "title")
newID1, newID2, err := CurPrinterHandler.RegisterPrinter(jxcontext.AdminCtx, "218510310", "ztdpveyg", "title")
t.Log(newID1 + "," + newID2)
if err != nil {
t.Fatal(err)