|
@@ -3,6 +3,7 @@ package router
|
|
|
import (
|
|
|
"context"
|
|
|
"errors"
|
|
|
+ "net/http"
|
|
|
"time"
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
@@ -141,7 +142,7 @@ func sendLogRecord(c *gin.Context, app cfacade.IApplication, tokenString, roleId
|
|
|
EventBasic: eventmodels.EventBasic{
|
|
|
ServerId: nodeId,
|
|
|
IsSuccess: func() bool {
|
|
|
- return c.Writer.Status() == int(code.OK)
|
|
|
+ return c.Writer.Status() == http.StatusOK
|
|
|
}(),
|
|
|
CreateAt: mhayaTime.Now().Unix(),
|
|
|
},
|