1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package event
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strings"
|
||||
@@ -30,6 +31,7 @@ type CheckCookie struct {
|
||||
}
|
||||
|
||||
func AddOperateEvent(ctx *jxcontext.Context, accessUUID, jsonData string, errCode, errMsg string, useTime int, apiFunctionSpec string) (err error) {
|
||||
fmt.Println("333333333")
|
||||
var (
|
||||
apiFunction string
|
||||
db = dao.GetDB()
|
||||
@@ -47,7 +49,7 @@ func AddOperateEvent(ctx *jxcontext.Context, accessUUID, jsonData string, errCod
|
||||
}
|
||||
if apiFunction != "" {
|
||||
if apiFunction[0:3] == "Get" || NoUseEventMap[apiFunction] != "" {
|
||||
return err
|
||||
return errors.New("未知错误")
|
||||
}
|
||||
}
|
||||
if accessUUID != "" {
|
||||
@@ -76,6 +78,7 @@ func AddOperateEvent(ctx *jxcontext.Context, accessUUID, jsonData string, errCod
|
||||
}()
|
||||
err = dao.CreateEntity(db, event)
|
||||
dao.Commit(db, txDB)
|
||||
fmt.Println("4444444444")
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user