diff --git a/controllers/api_controller.go b/controllers/api_controller.go index aaa8e0e85..579701c43 100644 --- a/controllers/api_controller.go +++ b/controllers/api_controller.go @@ -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 }