This commit is contained in:
aozhiwei 2024-07-24 11:01:13 +08:00
parent 061eb3dd03
commit a2fb17a9fa

View File

@ -6,6 +6,7 @@ import (
"mt"
"jccommon"
"main/constant"
"main/service"
"fmt"
"strings"
)
@ -86,8 +87,6 @@ func (this* chainActivity) saveToDb(ds *f5.DataSet) bool {
returnValues := ds.GetByName("return_values")
createTime := ds.GetByName("createtime")
modifyTime := ds.GetByName("modifytime")
itemId := 0
quality := 0
genWhereKv := func (tokenId string) [][]string {
return [][]string{
@ -99,7 +98,10 @@ func (this* chainActivity) saveToDb(ds *f5.DataSet) bool {
{"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{
{"txhash", txhash},
{"log_index", logIndex},