修复赛季积分重置问题
This commit is contained in:
parent
a293b03b21
commit
e4afc80be9
|
@ -171,6 +171,10 @@ func init() {
|
||||||
items := msg.GetItems()
|
items := msg.GetItems()
|
||||||
if items != nil {
|
if items != nil {
|
||||||
for _, dbItem := range dbItemArr {
|
for _, dbItem := range dbItemArr {
|
||||||
|
//todo 临时修复,正常应该道具需要使用事务同步
|
||||||
|
if dbItem.GetId() == common.ItemIDPermit {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if itemNum, exist := items[dbItem.Id]; exist {
|
if itemNum, exist := items[dbItem.Id]; exist {
|
||||||
oldItem := BagMgrSingleton.GetItem(p.SnId, dbItem.Id)
|
oldItem := BagMgrSingleton.GetItem(p.SnId, dbItem.Id)
|
||||||
diffNum := itemNum
|
diffNum := itemNum
|
||||||
|
|
Loading…
Reference in New Issue