- 重构打印机流程,添加“外卖管家”打印
This commit is contained in:
@@ -884,3 +884,11 @@ 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) {
|
||||
handler := partner.GetPrinterPlatformFromVendorID(vendorID)
|
||||
if handler == nil {
|
||||
return nil, fmt.Errorf("打印机厂商:%d当前不被支持,请检查vendorID", vendorID)
|
||||
}
|
||||
return handler.PrintMsg(ctx, id1, id2, msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user