up
This commit is contained in:
@@ -36,6 +36,9 @@ func AddOperateEvent(ctx *jxcontext.Context, accessUUID, jsonData string, errCod
|
|||||||
apiFunction string
|
apiFunction string
|
||||||
db = dao.GetDB()
|
db = dao.GetDB()
|
||||||
)
|
)
|
||||||
|
if ctx.GetRequest() == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
url := ctx.GetRequest().URL.Path
|
url := ctx.GetRequest().URL.Path
|
||||||
if url != "" {
|
if url != "" {
|
||||||
apiFunction = url[strings.LastIndex(url, "/")+1 : len(url)]
|
apiFunction = url[strings.LastIndex(url, "/")+1 : len(url)]
|
||||||
|
|||||||
Reference in New Issue
Block a user