This commit is contained in:
邹宗楠
2024-07-15 14:01:38 +08:00
parent 3bbd241264
commit 42360e124f
2 changed files with 5 additions and 1 deletions

View File

@@ -72,6 +72,10 @@ func handleConn(c net.Conn) error {
} }
return err return err
} }
globals.SugarLogger.Debugf("======buffer := %s", string(buffer))
globals.SugarLogger.Debugf("======n := %d", n)
globals.SugarLogger.Debugf("======LocalAddr := %s", c.LocalAddr().String())
globals.SugarLogger.Debugf("======RemoteAddr := %s", c.RemoteAddr().String())
//看是心跳还是打印回调 //看是心跳还是打印回调
data := hex.EncodeToString(buffer[:n]) data := hex.EncodeToString(buffer[:n])

View File

@@ -329,7 +329,7 @@ func (c *ApiController) DoPrint(dataMap map[string]interface{}) (data, errCode s
appID int appID int
orderNo string orderNo string
) )
globals.SugarLogger.Debugf("Begin API DoPrint data: [%v]", utils.Format4Output(dataMap, false)) //globals.SugarLogger.Debugf("Begin API DoPrint data: [%v]", utils.Format4Output(dataMap, false))
if _, ok := dataMap[keyPrintNo].(string); !ok { if _, ok := dataMap[keyPrintNo].(string); !ok {
return buildParamErrCodeAndErr(keyPrintNo) return buildParamErrCodeAndErr(keyPrintNo)
} }