This commit is contained in:
aozhiwei 2024-06-25 16:28:46 +08:00
parent 19fb58d293
commit d0811dd8b2

View File

@ -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
}