From 7c92f47be5b539ee85520bf14e32691e55903542 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Thu, 26 Aug 2021 15:22:57 +0800 Subject: [PATCH] aa --- controllers/api_controller.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 }