This commit is contained in:
yangduo 2024-08-08 11:21:19 +08:00
parent 94a69cbcb5
commit c9e1c22c44

View File

@ -7,7 +7,6 @@ import (
"f5"
"io"
"main/common"
"net/http"
"strings"
"github.com/gin-gonic/gin"
@ -68,10 +67,7 @@ func ActLog(c *gin.Context) bool {
}
}
if err := f5.GetApp().GetOrmDb(constant.ADMIN_DB).Table("t_op_log").Create(info).Error; err != nil {
c.JSON(http.StatusOK, gin.H{
"code": 1,
"message": err.Error(),
})
f5.GetSysLog().Error("!!!!!!!record op_log error:%s, %s, %s", info.Account, info.URL, info.Params)
}
return true