This commit is contained in:
aozhiwei 2024-07-29 13:18:43 +08:00
parent 26e7ae373d
commit 68e61a7591
2 changed files with 4 additions and 0 deletions

View File

@ -226,12 +226,14 @@ func RepairAllHeroNftQuality() error {
for _, val := range batch { for _, val := range batch {
if !inited { if !inited {
sql += "?" sql += "?"
inited = true
} else { } else {
sql += ", ?" sql += ", ?"
} }
q5.AppendSlice(&params, val.TokenId) q5.AppendSlice(&params, val.TokenId)
tokenIdQualityHash[val.TokenId] = val tokenIdQualityHash[val.TokenId] = val
} }
sql += ")"
} }
f5.GetGoStyleDb().RawQuery( f5.GetGoStyleDb().RawQuery(
constant.GAME_DB, constant.GAME_DB,

View File

@ -4,6 +4,7 @@ import (
"q5" "q5"
"f5" "f5"
"mt" "mt"
"main/service"
"jccommon" "jccommon"
"main/constant" "main/constant"
"time" "time"
@ -71,6 +72,7 @@ func (this* contribution) unInit() {
} }
func (this* contribution) stat(statTime int64, nowTime int64) { func (this* contribution) stat(statTime int64, nowTime int64) {
service.RepairAllHeroNftQuality()
for true { for true {
if this.internalStat(statTime, nowTime) { if this.internalStat(statTime, nowTime) {
return return