1
This commit is contained in:
@@ -153,7 +153,12 @@ func TestPrint(c *gin.Context, appID int, tokenInfo *model.TokenInfo, printNo st
|
||||
now = time.Now()
|
||||
)
|
||||
msgID = now.Format("20060102150405") + "_" + putils.RandStringBytesWithNumber(8)
|
||||
if apps, _ := dao.GetApps(db, appID, tokenInfo.User.UserID, ""); len(apps) == 0 {
|
||||
globals.SugarLogger.Debug("err=============", tokenInfo.User.UserID)
|
||||
apps, err := dao.GetApps(db, appID, tokenInfo.User.UserID, "")
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if len(apps) == 0 {
|
||||
return "", fmt.Errorf("未查询到此应用!app_id:%d", appID)
|
||||
}
|
||||
printers, _ := dao.GetPrinters(db, appID, printNo, 0, 0, 0)
|
||||
|
||||
Reference in New Issue
Block a user