1
This commit is contained in:
parent
559e2f2ee2
commit
c1cfbc5e43
@ -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()
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user