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