1
This commit is contained in:
parent
061eb3dd03
commit
a2fb17a9fa
@ -6,6 +6,7 @@ import (
|
|||||||
"mt"
|
"mt"
|
||||||
"jccommon"
|
"jccommon"
|
||||||
"main/constant"
|
"main/constant"
|
||||||
|
"main/service"
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
@ -86,8 +87,6 @@ func (this* chainActivity) saveToDb(ds *f5.DataSet) bool {
|
|||||||
returnValues := ds.GetByName("return_values")
|
returnValues := ds.GetByName("return_values")
|
||||||
createTime := ds.GetByName("createtime")
|
createTime := ds.GetByName("createtime")
|
||||||
modifyTime := ds.GetByName("modifytime")
|
modifyTime := ds.GetByName("modifytime")
|
||||||
itemId := 0
|
|
||||||
quality := 0
|
|
||||||
|
|
||||||
genWhereKv := func (tokenId string) [][]string {
|
genWhereKv := func (tokenId string) [][]string {
|
||||||
return [][]string{
|
return [][]string{
|
||||||
@ -99,7 +98,10 @@ func (this* chainActivity) saveToDb(ds *f5.DataSet) bool {
|
|||||||
{"token_id", tokenId},
|
{"token_id", tokenId},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
genInsertKv := func (nftAddress, tokenId string, sender string, to string, isMint int32) [][]string {
|
genInsertKv := func (nftAddress ,tokenId ,sender, to string, isMint int32) [][]string {
|
||||||
|
var itemId int32
|
||||||
|
var quality int32
|
||||||
|
service.GetItemIdHeroQuality(q5.ToInt32(netId), contractAddress, tokenId, &itemId, &quality)
|
||||||
return [][]string{
|
return [][]string{
|
||||||
{"txhash", txhash},
|
{"txhash", txhash},
|
||||||
{"log_index", logIndex},
|
{"log_index", logIndex},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user