This commit is contained in:
邹宗楠
2022-08-25 10:20:19 +08:00
parent 0f6f54635e
commit d082a3a70b
2 changed files with 5 additions and 2 deletions

View File

@@ -364,7 +364,10 @@ func PrinterOrderVoice(param map[string]string, setting *model.PrintSettingObj,
rejectionValue = append(rejectionValue, param[model.OrderNoPrint], param[model.VendorNamePrint], param[model.VendorOrderNoPrint], param[model.CustcareRefundReasonPrint], utils.Time2DateStr(time.Now()))
textMsg = strings.Replace(fmt.Sprintf(strings.Replace(rejection, "\n", "", -1), rejectionValue...), "\\n", "\r\n", -1)
}
default:
rejection := ``
rejection += `<center><b>暂无此状态打印信息</b></center><br>`
textMsg = rejection
}
voice := strings.Replace(fmt.Sprintf(strings.Replace(printVoiceMsg, "\n", "", -1), printVoiceValue...), "\\n", "\r\n", -1)

View File

@@ -105,7 +105,7 @@ func AddPrinter(appID int, printers []*model.AddPrinterParam) (err error) {
Volume: 1,
FlowFlag: 0,
OfflineCount: 0,
UserId: "system",
UserId: "system_user",
}
// 创建打印机