1
This commit is contained in:
parent
19fb58d293
commit
d0811dd8b2
@ -14,20 +14,28 @@ func UpdateSpecTransferStatus(dbIdx int64, status int32) bool {
|
||||
func OpenGoldBullion(accountId string, netId int32, tokenId string, goldNum int32) bool {
|
||||
GetTaskMgr().LockOpenGodBullion()
|
||||
defer GetTaskMgr().UnLockOpenGodBullion()
|
||||
|
||||
result := false
|
||||
f5.GetGoStyleDb().OrmSelectOne(
|
||||
constant.GAME_DB,
|
||||
"t_gold_bullion",
|
||||
[][]string {
|
||||
{"net_id", q5.ToString(netId)},
|
||||
{"token_id", tokenId},
|
||||
},
|
||||
func (err error, ds *f5.DataSet) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if ds.Next() {
|
||||
}
|
||||
})
|
||||
{
|
||||
var dbErr error
|
||||
f5.GetGoStyleDb().OrmSelectOne(
|
||||
constant.GAME_DB,
|
||||
"t_gold_bullion",
|
||||
[][]string {
|
||||
{"net_id", q5.ToString(netId)},
|
||||
{"token_id", tokenId},
|
||||
},
|
||||
func (err error, ds *f5.DataSet) {
|
||||
dbErr = err
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if ds.Next() {
|
||||
}
|
||||
})
|
||||
if dbErr != nil {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user