Merge branch 'dev' of git.kingsome.cn:server/game2006go into dev

This commit is contained in:
yangduo 2024-07-26 16:08:43 +08:00
commit 700627eafd
2 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ func (this* chainActivity) processLockAndUnLockEvent(netId int32, lockContractAd
sql := fmt.Sprintf(` sql := fmt.Sprintf(`
SELECT * FROM t_blockchain_event SELECT * FROM t_blockchain_event
WHERE idx > %d AND idx <= %d AND net_id = %d AND contract_address = ? AND event_name IN (?, ?) WHERE idx > %d AND idx <= %d AND net_id = %d AND contract_address = ? AND event_name IN (?, ?)
ORDER BY idx LIMIT 10 ORDER BY idx LIMIT 1000
`, `,
lastIdx, lastIdx,
maxIdx, maxIdx,
@ -143,8 +143,8 @@ func (this* chainActivity) saveToDb(ds *f5.DataSet) bool {
} }
} else if eventName == "UnLock" { } else if eventName == "UnLock" {
p := new(unLockReturnValues) p := new(unLockReturnValues)
sender := q5.SafeToString(p.User)
if q5.DecodeJson(returnValues, p) == nil { if q5.DecodeJson(returnValues, p) == nil {
sender := q5.SafeToString(p.User)
decodeJsonOk = true decodeJsonOk = true
for _, nft := range p.NftList { for _, nft := range p.NftList {
if len(nft) != 3 { if len(nft) != 3 {

View File

@ -19,13 +19,13 @@ func (this *taskMgr) Init() {
this.sysMail.init() this.sysMail.init()
this.repairOrder.init() this.repairOrder.init()
//this.refreshMeta.init() //this.refreshMeta.init()
this.contribution.init() //this.contribution.init()
this.chainActivity.init() this.chainActivity.init()
} }
func (this *taskMgr) UnInit() { func (this *taskMgr) UnInit() {
this.chainActivity.unInit() this.chainActivity.unInit()
this.contribution.unInit() //this.contribution.unInit()
//this.refreshMeta.unInit() //this.refreshMeta.unInit()
this.repairOrder.unInit() this.repairOrder.unInit()
this.sysMail.unInit() this.sysMail.unInit()