From e4afc80be9866fec5c328813390736f0912b281f Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Tue, 23 Jul 2024 11:24:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B5=9B=E5=AD=A3=E7=A7=AF?= =?UTF-8?q?=E5=88=86=E9=87=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worldsrv/action_server.go b/worldsrv/action_server.go index 645d084..dc7769c 100644 --- a/worldsrv/action_server.go +++ b/worldsrv/action_server.go @@ -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