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

View File

@ -152,8 +152,13 @@ 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 {
isMint = 1 if value {
isMint = 1
}
} else {
decodeJsonOk = false
break
} }
var dbErr error var dbErr error
f5.GetGoStyleDb().Upsert( f5.GetGoStyleDb().Upsert(