修复赛季积分重置问题

This commit is contained in:
sk 2024-07-23 11:24:13 +08:00
parent a293b03b21
commit e4afc80be9
1 changed files with 4 additions and 0 deletions

View File

@ -171,6 +171,10 @@ func init() {
items := msg.GetItems()
if items != nil {
for _, dbItem := range dbItemArr {
//todo 临时修复,正常应该道具需要使用事务同步
if dbItem.GetId() == common.ItemIDPermit {
continue
}
if itemNum, exist := items[dbItem.Id]; exist {
oldItem := BagMgrSingleton.GetItem(p.SnId, dbItem.Id)
diffNum := itemNum