娃娃兌換記錄

This commit is contained in:
by 2024-09-25 17:04:26 +08:00
parent ef7fdec1fb
commit eb32e72916
2 changed files with 3 additions and 19 deletions

View File

@ -29,21 +29,6 @@ func CSBagInfo(s *netlib.Session, packetid int, data interface{}, sid int64) err
if platform == nil {
return nil
}
BagMgrSingleton.AddItems(&model.AddItemParam{
Platform: p.Platform,
SnId: p.SnId,
Change: []*model.Item{
{
ItemId: 40004,
ItemNum: 1000,
},
},
GainWay: common.GainWayItemBagChangeDoll,
Operator: "system",
Remark: "背包内使用兑换娃娃卡",
})
//nowLocation := int(msg.NowLocation - 1)
tp := msg.GetTp() // 道具类型
bagInfo := BagMgrSingleton.GetBagInfo(p.SnId)

View File

@ -1445,18 +1445,17 @@ func (this *ShopMgr) GetDollExchangeRecord(p *Player) *bag.SCDillChangeLog {
return as
}), task.CompleteNotifyWrapper(func(data interface{}, t task.Task) {
if data != nil {
if as := data.(*webapi_proto.SAGetExchangeOrder); as != nil {
if as := data.(*webapi_proto.SAGetDollExchangeOrder); as != nil {
for _, v := range as.OrderList {
cdata := this.GetExchangeData(p.Platform, v.GoodsId)
record := &bag.DillChangeLogInfo{
CreateTs: strconv.FormatInt(v.CreateTime, 10),
State: v.Status,
Remark: v.Remark,
ItemId: v.GoodsId,
ItemId: cdata.ItemId,
ItemNum: v.ExchangeNum,
TypeId: 2,
}
// remark
pack.Info = append(pack.Info, record)
}
}