每日订单打款插入日志表修改
This commit is contained in:
@@ -31,7 +31,7 @@ type CheckCookie struct {
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
func AddOperateEvent(ctx *jxcontext.Context, accessUUID, jsonData string, errCode, errMsg string, useTime int) (err error) {
|
||||
func AddOperateEvent(ctx *jxcontext.Context, accessUUID, jsonData string, errCode, errMsg string, useTime int, apiFunctionSpec string) (err error) {
|
||||
var (
|
||||
apiFunction string
|
||||
db = dao.GetDB()
|
||||
@@ -39,9 +39,13 @@ func AddOperateEvent(ctx *jxcontext.Context, accessUUID, jsonData string, errCod
|
||||
if ctx.GetRequest() == nil {
|
||||
return nil
|
||||
}
|
||||
url := ctx.GetRequest().URL.Path
|
||||
if url != "" {
|
||||
apiFunction = url[strings.LastIndex(url, "/")+1 : len(url)]
|
||||
if apiFunctionSpec != "" {
|
||||
url := ctx.GetRequest().URL.Path
|
||||
if url != "" {
|
||||
apiFunction = url[strings.LastIndex(url, "/")+1 : len(url)]
|
||||
}
|
||||
} else {
|
||||
apiFunction = apiFunctionSpec
|
||||
}
|
||||
if apiFunction != "" {
|
||||
if apiFunction[0:3] == "Get" || NoUseEventMap[apiFunction] != "" {
|
||||
|
||||
@@ -762,7 +762,7 @@ func AutoPayForPopluarMan(ctx *jxcontext.Context) (err error) {
|
||||
} else {
|
||||
errCode = model.ErrCodeSuccess
|
||||
}
|
||||
err = event.AddOperateEvent(ctx, ctx.GetTrackInfo(), cms.BuildDiffData(mapResult), errCode, errMsg, 0)
|
||||
err = event.AddOperateEvent(ctx, ctx.GetTrackInfo(), cms.BuildDiffData(mapResult), errCode, errMsg, 0, "AutoPayForPopluarMan")
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user