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" "f5"
"io" "io"
"main/common" "main/common"
"net/http"
"strings" "strings"
"github.com/gin-gonic/gin" "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 { if err := f5.GetApp().GetOrmDb(constant.ADMIN_DB).Table("t_op_log").Create(info).Error; err != nil {
c.JSON(http.StatusOK, gin.H{ f5.GetSysLog().Error("!!!!!!!record op_log error:%s, %s, %s", info.Account, info.URL, info.Params)
"code": 1,
"message": err.Error(),
})
} }
return true return true