修改京西打印机
This commit is contained in:
@@ -34,11 +34,11 @@ func (c *PrinterHandler) GetVendorID() int {
|
||||
return model.VendorIDJxprint
|
||||
}
|
||||
|
||||
func (c *PrinterHandler) PrintMsg(ctx *jxcontext.Context, id1, id2, msgTitle, msgContent string) (printerStatus *partner.PrinterStatus, err error) {
|
||||
globals.SugarLogger.Debugf("PrintMsg id1:%s", id1)
|
||||
if id1 != "" && globals.EnableStoreWrite {
|
||||
if _, err := api.JxPrintAPI.DoPrint(id1, msgContent, utils.Str2Int(id2)); err == nil {
|
||||
return c.GetPrinterStatus(ctx, id1, "")
|
||||
func (c *PrinterHandler) PrintMsg(ctx *jxcontext.Context, printSn, orderSeq, msgTitle, msgContent string) (printerStatus *partner.PrinterStatus, err error) {
|
||||
globals.SugarLogger.Debugf("PrintMsg id1:%s", printSn)
|
||||
if printSn != "" && globals.EnableStoreWrite {
|
||||
if _, err := api.JxPrintAPI.DoPrint(printSn, msgContent, utils.Str2Int(orderSeq)); err == nil {
|
||||
return c.GetPrinterStatus(ctx, printSn, "")
|
||||
}
|
||||
}
|
||||
printerStatus = &partner.PrinterStatus{
|
||||
|
||||
Reference in New Issue
Block a user