1
This commit is contained in:
parent
7834d87d14
commit
3d80dd0430
@ -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
|
||||
}
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user