This commit is contained in:
邹宗楠
2022-11-17 17:49:12 +08:00
parent 5806a9fad8
commit b0dfd93d6c
4 changed files with 8 additions and 11 deletions

View File

@@ -205,10 +205,10 @@ func TestPrint(appID int, tokenInfo *model.TokenInfo, printNo string, orderNo in
// return "", fmt.Errorf("未查询到此应用app_id:%d", appID)
//}
printers, _ := dao.GetPrinters(db, appID, printNo, 0, 0, 0)
if len(printers) == 0 {
return "", fmt.Errorf("未在该应用下查到此打印机app_id: %d, print_no: %s", appID, printNo)
}
//printers, _ := dao.GetPrinters(db, appID, printNo, 0, 0, 0)
//if len(printers) == 0 {
// return "", fmt.Errorf("未在该应用下查到此打印机app_id: %d, print_no: %s", appID, printNo)
//}
printMsg := &model.PrintMsg{
CreatedAt: &now,