This commit is contained in:
邹宗楠
2022-08-24 16:22:57 +08:00
parent 4a0d0ee3df
commit a68affad2a

View File

@@ -415,12 +415,12 @@ func (c *ApiController) GetPrinterStatus(dataMap map[string]interface{}) (data,
return buildParamErrCodeAndErr(keyPrintNo)
}
}
//appID = utils.Str2Int(dataMap[keyAppID].(string))
//if status, err := cms.GetPrinterStatus(appID, printNo); err != nil {
// return "", model.ErrCodeGeneralFailed, err
//} else {
// return utils.Int2Str(status), errCode, err
//}
appID := utils.Str2Int(dataMap[keyAppID].(string))
if status, err := cms.GetPrinterStatus(appID, printNo); err != nil {
return "", model.ErrCodeGeneralFailed, err
} else {
return utils.Int2Str(status), errCode, err
}
return data, errCode, err
}