1
This commit is contained in:
@@ -323,7 +323,8 @@ func (c *ApiController) DelPrinterSeq(dataMap map[string]interface{}) (data, err
|
||||
func (c *ApiController) DoPrint(dataMap map[string]interface{}) (data, errCode string, err error) {
|
||||
var (
|
||||
printNo, content string
|
||||
orderNo, appID int
|
||||
appID int
|
||||
orderNo string
|
||||
)
|
||||
globals.SugarLogger.Debugf("Begin API DoPrint data: [%v]", utils.Format4Output(dataMap, false))
|
||||
if _, ok := dataMap[keyPrintNo].(string); !ok {
|
||||
@@ -344,7 +345,7 @@ func (c *ApiController) DoPrint(dataMap map[string]interface{}) (data, errCode s
|
||||
return buildParamErrCodeAndErr(keyOrderNo)
|
||||
} else {
|
||||
orderNoStr := dataMap[keyOrderNo].(string)
|
||||
if orderNo = utils.Str2Int(orderNoStr); orderNo == 0 {
|
||||
if orderNo = orderNoStr; orderNo == "" {
|
||||
return buildParamErrCodeAndErr(keyOrderNo)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user