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 {
if !inited {
sql += "?"
inited = true
} else {
sql += ", ?"
}
q5.AppendSlice(&params, val.TokenId)
tokenIdQualityHash[val.TokenId] = val
}
sql += ")"
}
f5.GetGoStyleDb().RawQuery(
constant.GAME_DB,

View File

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