This commit is contained in:
aozhiwei 2024-07-24 10:51:21 +08:00
parent e023dff83d
commit 061eb3dd03

View File

@ -152,9 +152,14 @@ func (this* chainActivity) saveToDb(ds *f5.DataSet) bool {
tokenId := q5.SafeToString(nft[0]) tokenId := q5.SafeToString(nft[0])
to := q5.SafeToString(nft[1]) to := q5.SafeToString(nft[1])
var isMint int32 var isMint int32
if nft[2].(bool) { if value, ok := nft[2].(bool); ok {
if value {
isMint = 1 isMint = 1
} }
} else {
decodeJsonOk = false
break
}
var dbErr error var dbErr error
f5.GetGoStyleDb().Upsert( f5.GetGoStyleDb().Upsert(
constant.BCEVENT_DB, constant.BCEVENT_DB,