This commit is contained in:
aozhiwei 2024-07-11 13:04:37 +08:00
parent 5cd05fa5c9
commit cd06f140bd
4 changed files with 15 additions and 2 deletions

View File

@ -93,6 +93,10 @@ const (
GAME_LOG_TYPE_BACKTASK_USER_ADD_GOLD_END = "backtask.user_add_gold.end"
)
const (
MAP_MODE_BOUNTY = 301
)
const (
BC_CURRENCY_NAME_ETHEREUM = "Ethereum"
BC_CURRENCY_NAME_USDC = "USDC"

View File

@ -39,7 +39,7 @@ func (this *MarketApi) LockList(c *gin.Context) {
pageSize := q5.AdjustRangeValue(q5.SafeToInt32(reqJson.PageSize), 1, 20)
cursor := q5.SafeToInt64(reqJson.Cursor)
sql := fmt.Sprintf(`
SELECT * FROM t_nft WHERE idx > %d AND net_id = %d AND owner_address = '%s' AND owner_address = last_lock_address
SELECT * FROM t_nft WHERE idx > %d AND net_id = %d AND last_owner_address = '%s' AND last_owner_address = last_lock_address
`,
cursor, netId, owner)
@ -108,4 +108,4 @@ SELECT * FROM t_nft WHERE idx > %d AND net_id = %d AND owner_address = '%s' AND
}
}
c.JSON(200, rspObj)
}
}

View File

@ -6,6 +6,8 @@ require q5 v1.0.0
require f5 v1.0.0
require jccommon v1.0.0
require mt v1.0.0
require mtb v1.0.0 // indirect
@ -57,6 +59,8 @@ replace q5 => ../../third_party/q5
replace f5 => ../../third_party/f5
replace jccommon => ../jccommon
replace mt => ./mt
replace mtb => ./mtb

View File

@ -7,6 +7,7 @@ import (
"mt"
"main/common"
"main/constant"
"jccommon"
"fmt"
"sort"
@ -690,6 +691,10 @@ func (this *team) EnemyTeamMustHasRealPlayer() bool {
return false
}
func (this *team) NeedMatchRealPlayer() bool {
return q5.ToInt32(this.getModeId()) == jccommon.MAP_MODE_BOUNTY
}
func newTeam() *team {
t := new(team)
t.state = constant.TEAM_STATE_INIT