Compare commits
No commits in common. "45cb4ac67839e455eaee6cea7f97bd7b4360dd42" and "d230bbd74552fdbb2559419750700ea7d1ee202c" have entirely different histories.
45cb4ac678
...
d230bbd745
|
@ -53,15 +53,10 @@ func CSPushCoinInfo(s *netlib.Session, packetid int, data interface{}, sid int64
|
|||
}
|
||||
|
||||
if p.WelfData.PushCoin == nil {
|
||||
// 初始化
|
||||
p.WelfData.PushCoin = &model.PushCoinData{
|
||||
Power: PowerInit,
|
||||
Exchange: make(map[int32]int32),
|
||||
Items: map[int32]int64{
|
||||
common.ItemIDVCard: 1,
|
||||
common.ItemIDCoin: 50 * 5000,
|
||||
common.ItemIDPlum: 1,
|
||||
},
|
||||
Items: make(map[int32]int64),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -221,7 +216,9 @@ func CSPushCoinPlayerOp(s *netlib.Session, packetid int, data interface{}, sid i
|
|||
p.WelfData.PushCoin.Refresh++
|
||||
// 1个v卡,50个金币,大梅花1个
|
||||
p.WelfData.PushCoin.Items = map[int32]int64{
|
||||
common.ItemIDCoin: 50 * 5000,
|
||||
common.ItemIDVCard: 1,
|
||||
common.ItemIDCoin: 50 * 5000,
|
||||
common.ItemIDPlum: 1,
|
||||
}
|
||||
|
||||
case activity.OpCodes_OP_Exchange:
|
||||
|
|
|
@ -2485,8 +2485,6 @@ func (this *WelfareMgr) GetRedPacket(p *Player, id int64) *welfare.SCRedPacketDr
|
|||
ItemNum: reward,
|
||||
}, mq.DBRedPacket)
|
||||
|
||||
TaskSubjectSingleton.Touch(common.TaskTypeBuyRedBag, &TaskData{SnId: p.SnId, Num: 1})
|
||||
|
||||
_, pack.RemainCount = RedPacketMgrInst.GetRemainTimesByConfig(p, cfg)
|
||||
Send(welfare.OpResultCode_OPRC_Sucess)
|
||||
return pack
|
||||
|
|
Loading…
Reference in New Issue