This commit is contained in:
aozhiwei 2024-06-26 11:18:00 +08:00
parent a0b94846d0
commit fc42c31084
2 changed files with 17 additions and 1 deletions

View File

@ -9,7 +9,20 @@ import (
)
func UpdateSpecTransferStatus(dbIdx int64, status int32) bool {
return true
var dbErr error
f5.GetGoStyleDb().Update(
constant.BCEVENT_DB,
"t_721nft_spec_transfer",
[][]string {
{"idx", q5.ToString(dbIdx)},
},
[][]string {
{"status", q5.ToString(status)},
},
func (err error, lastInsertId int64, rowsAffected int64) {
dbErr = err
})
return dbErr == nil
}
func OpenGoldBullion(accountId string, accountAddress string, netId int32, tokenId string) bool {

View File

@ -16,6 +16,9 @@ type hero struct {
func (this* hero) onMint(dbIdx int64, netId int32, contractAddress string, tokenId string,
from string, to string) bool {
if jccommon.IsAirDropNft(tokenId) {
return service.UpdateSpecTransferStatus(dbIdx, 1)
}
ok := this.internalSendMail(dbIdx, to, constant.MAIL_HERO_MINT, tokenId)
return ok
}