- yilianyun printer added

This commit is contained in:
gazebo
2019-04-09 20:56:53 +08:00
parent 3203201bc6
commit 54a0cc216d
13 changed files with 330 additions and 133 deletions

View File

@@ -885,10 +885,10 @@ func RefreshEbaiBadComment(ctx *jxcontext.Context, fromTime, toTime time.Time, i
return hint, err
}
func PrintMsg(ctx *jxcontext.Context, vendorID int, id1, id2, msg string) (printerStatus *partner.PrinterStatus, err error) {
func PrintMsg(ctx *jxcontext.Context, vendorID int, id1, id2, msgTitle, msgContent string) (printerStatus *partner.PrinterStatus, err error) {
handler := partner.GetPrinterPlatformFromVendorID(vendorID)
if handler == nil {
return nil, fmt.Errorf("打印机厂商:%d当前不被支持请检查vendorID", vendorID)
}
return handler.PrintMsg(ctx, id1, id2, msg)
return handler.PrintMsg(ctx, id1, id2, msgTitle, msgContent)
}