1
This commit is contained in:
parent
aefeefbba5
commit
f26b67b106
@ -150,6 +150,7 @@ func NftExists(netId int32, contractAddress string, tokenId string) bool {
|
|||||||
|
|
||||||
func NftUpdateLock(netId int32, contractAddress string, tokenId string,
|
func NftUpdateLock(netId int32, contractAddress string, tokenId string,
|
||||||
lockIdx int64, lockAddress string) bool {
|
lockIdx int64, lockAddress string) bool {
|
||||||
|
nowTime := f5.GetApp().GetRealSeconds()
|
||||||
result := false
|
result := false
|
||||||
f5.GetGoStyleDb().UpsertEx(
|
f5.GetGoStyleDb().UpsertEx(
|
||||||
constant.BCNFT_DB,
|
constant.BCNFT_DB,
|
||||||
@ -162,6 +163,7 @@ func NftUpdateLock(netId int32, contractAddress string, tokenId string,
|
|||||||
[][]string {
|
[][]string {
|
||||||
{"last_lock_idx", q5.ToString(lockIdx)},
|
{"last_lock_idx", q5.ToString(lockIdx)},
|
||||||
{"last_lock_address", lockAddress},
|
{"last_lock_address", lockAddress},
|
||||||
|
{"last_lock_time", q5.ToString(nowTime)},
|
||||||
},
|
},
|
||||||
[][]string {},
|
[][]string {},
|
||||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user