兑换记录BUG修改

This commit is contained in:
by 2024-09-28 12:02:57 +08:00
parent a49b02d3a9
commit b5099d9c37
1 changed files with 3 additions and 1 deletions

View File

@ -626,9 +626,11 @@ func CSDollChange(s *netlib.Session, packetid int, data interface{}, sid int64)
}) })
logger.Logger.Trace("背包内使用兑换娃娃卡 bagInfo = ", bagInfo) logger.Logger.Trace("背包内使用兑换娃娃卡 bagInfo = ", bagInfo)
pack.RetCode = rest pack.RetCode = rest
if isF { if isF {
itemId := item.ItemId
task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} { 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) return model.InsertDbBagChangeDollLog(dollLog)
}), task.CompleteNotifyWrapper(func(data interface{}, t task.Task) { }), task.CompleteNotifyWrapper(func(data interface{}, t task.Task) {
if data != nil { if data != nil {