1
This commit is contained in:
@@ -72,6 +72,10 @@ func handleConn(c net.Conn) error {
|
||||
}
|
||||
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])
|
||||
|
||||
@@ -329,7 +329,7 @@ func (c *ApiController) DoPrint(dataMap map[string]interface{}) (data, errCode s
|
||||
appID int
|
||||
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 {
|
||||
return buildParamErrCodeAndErr(keyPrintNo)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user