From b5099d9c37af75998d3e59e0ffd3cefec9435b04 Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Sat, 28 Sep 2024 12:02:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=91=E6=8D=A2=E8=AE=B0=E5=BD=95BUG?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_bag.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worldsrv/action_bag.go b/worldsrv/action_bag.go index 66a00a0..b20697d 100644 --- a/worldsrv/action_bag.go +++ b/worldsrv/action_bag.go @@ -626,9 +626,11 @@ func CSDollChange(s *netlib.Session, packetid int, data interface{}, sid int64) }) logger.Logger.Trace("背包内使用兑换娃娃卡 bagInfo = ", bagInfo) pack.RetCode = rest + if isF { + itemId := item.ItemId task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} { - dollLog := model.NewDbBagChangeDoll(p.Platform, p.SnId, item.ItemId, 1, 0, "", msg.Addr, msg.UserName, msg.UserTel) + dollLog := model.NewDbBagChangeDoll(p.Platform, p.SnId, itemId, 1, 0, "", msg.Addr, msg.UserName, msg.UserTel) return model.InsertDbBagChangeDollLog(dollLog) }), task.CompleteNotifyWrapper(func(data interface{}, t task.Task) { if data != nil {