diff --git a/controllers/api_controller.go b/controllers/api_controller.go index 30a8c1573..696322072 100644 --- a/controllers/api_controller.go +++ b/controllers/api_controller.go @@ -391,7 +391,7 @@ func (c *ApiController) GetPrintMsg(dataMap map[string]interface{}) (data map[st func (c *ApiController) GetPrinterStatus(dataMap map[string]interface{}) (data, errCode string, err error) { var ( printNo string - appID int + //appID int ) globals.SugarLogger.Debugf("Begin API GetPrinterStatus data: [%v]", utils.Format4Output(dataMap, false)) if _, ok := dataMap[keyPrintNo].(string); !ok { @@ -401,12 +401,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 }