diff --git a/worldsrv/action_phonelottery.go b/worldsrv/action_phonelottery.go index 7be5ed1..fd63987 100644 --- a/worldsrv/action_phonelottery.go +++ b/worldsrv/action_phonelottery.go @@ -389,7 +389,23 @@ func (this *CSDiamondLotteryHandler) Process(s *netlib.Session, packetid int, da } } } - BagMgrSingleton.AddItems(p, items, 0, common.GainWayDiamondLottery, "system", "钻石抽奖", 0, 0, false) + BagMgrSingleton.AddItemsV2(&ItemParam{ + P: p, + Change: items, + Cost: []*model.ItemInfo{ + { + ItemId: common.ItemIDDiamond, + ItemNum: diamondNum, + }, + }, + Add: 0, + GainWay: common.GainWayDiamondLottery, + Operator: "system", + Remark: "钻石抽奖", + gameId: 0, + gameFreeId: 0, + noLog: false, + }) pack.LuckyScore = p.DiamondLotteryScore p.SendToClient(int(player_proto.PlayerPacketID_PACKET_SC_DiamondLottery), pack) logger.Logger.Trace("返回钻石抽奖信息:", pack.String())