This commit is contained in:
aozhiwei 2024-07-24 10:19:09 +08:00
parent 7834d87d14
commit 3d80dd0430
2 changed files with 17 additions and 3 deletions

View File

@ -3,7 +3,7 @@ package jccommon
import (
)
func AddDbLog(dataSource string, logType int32, subType int32,
func AddDbLog(dataSource string, logType string, subType string,
params map[string]string) error {
return nil
}

View File

@ -10,8 +10,6 @@ import (
"strings"
)
const DBPARAM_CHAIN_ACTIVITY_PRE = "chain_activity"
type chainActivity struct {
}
@ -132,6 +130,14 @@ func (this* chainActivity) saveToDb(ds *f5.DataSet) bool {
return false
}
}
} else {
jccommon.AddDbLog(constant.BCEVENT_DB, "chainActivity", "returnValuesDecodeError",
map[string]string{
"param1": txhash,
"param2": netId,
"param3": eventName,
"param4": idx,
})
}
} else if eventName == "UnLock" {
p := new(unLockReturnValues)
@ -182,6 +188,14 @@ func (this* chainActivity) saveToDb(ds *f5.DataSet) bool {
return false
}
}
} else {
jccommon.AddDbLog(constant.BCEVENT_DB, "chainActivity", "returnValuesDecodeError",
map[string]string{
"param1": txhash,
"param2": netId,
"param3": eventName,
"param4": idx,
})
}
} else {
panic(fmt.Sprintf("chainActivity unknow event_name %s", eventName))