This commit is contained in:
邹宗楠
2022-08-29 14:17:02 +08:00
parent a7c6200601
commit 690763db2c
3 changed files with 11 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ import (
"bytes"
"crypto/md5"
"encoding/json"
"errors"
"fmt"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/dao"
@@ -367,9 +368,12 @@ func (c *ApiController) DoPrint(dataMap map[string]interface{}) (data, errCode s
globals.SugarLogger.Debugf("MakePrintMsgOnTempVoice 4 err := %v", err)
return "", model.ErrCodeGeneralFailed, err
}
if printMsg == "" {
return "", model.ErrCodeGeneralFailed, errors.New("无打印数据")
}
content = printMsg
if err = cms.DoPrint(appID, msgID, printNo, content, orderNo); err != nil {
if err = cms.DoPrintMsg(appID, msgID, printNo, content, orderNo); err != nil {
globals.SugarLogger.Debugf("DoPrint 5 err := %v", err)
return "", model.ErrCodeGeneralFailed, err
}