调整
This commit is contained in:
parent
94a69cbcb5
commit
c9e1c22c44
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user