1
This commit is contained in:
parent
a0b94846d0
commit
fc42c31084
@ -9,7 +9,20 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func UpdateSpecTransferStatus(dbIdx int64, status int32) bool {
|
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 {
|
func OpenGoldBullion(accountId string, accountAddress string, netId int32, tokenId string) bool {
|
||||||
|
@ -16,6 +16,9 @@ type hero struct {
|
|||||||
|
|
||||||
func (this* hero) onMint(dbIdx int64, netId int32, contractAddress string, tokenId string,
|
func (this* hero) onMint(dbIdx int64, netId int32, contractAddress string, tokenId string,
|
||||||
from string, to string) bool {
|
from string, to string) bool {
|
||||||
|
if jccommon.IsAirDropNft(tokenId) {
|
||||||
|
return service.UpdateSpecTransferStatus(dbIdx, 1)
|
||||||
|
}
|
||||||
ok := this.internalSendMail(dbIdx, to, constant.MAIL_HERO_MINT, tokenId)
|
ok := this.internalSendMail(dbIdx, to, constant.MAIL_HERO_MINT, tokenId)
|
||||||
return ok
|
return ok
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user