1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user