This commit is contained in:
aozhiwei 2024-06-25 20:21:03 +08:00
parent 559e2f2ee2
commit c1cfbc5e43
2 changed files with 5 additions and 2 deletions

View File

@ -81,7 +81,7 @@ func OpenGoldBullion(accountId string, accountAddress string, netId int32, token
return result
}
func ReturnGoldBullion(accountId string, accountAddress string, netId int32, tokenId string) bool {
func ReturnGoldBullion(accountId string, netId int32, tokenId string) bool {
GetTaskMgr().LockOpenGodBullion()
defer GetTaskMgr().UnLockOpenGodBullion()

View File

@ -7,6 +7,7 @@ import (
"mt"
"fmt"
"main/constant"
"main/service"
)
type goldBullionReturn struct {
@ -44,6 +45,8 @@ SELECT * FROM t_gold_bullion WHERE idx > %d AND activated = 0 AND returned = 0 A
}
func (this* goldBullionReturn) returnGold(ds *f5.DataSet) bool {
netId := q5.ToInt32(ds.GetByName("net_id"))
accountId := ds.GetByName("account_id")
contractAddress := ds.GetByName("contract_address")
tokenId := ds.GetByName("token_id")
{
@ -84,5 +87,5 @@ func (this* goldBullionReturn) returnGold(ds *f5.DataSet) bool {
return true
}
}
return true
return service.ReturnGoldBullion(accountId, netId, tokenId)
}