卡牌时间线优化
This commit is contained in:
parent
87aef36237
commit
00809c8484
@ -2514,7 +2514,11 @@ func ReqGetFriendCard(player *Player, buf []byte) error {
|
|||||||
}
|
}
|
||||||
FriendMod.DelCardInfo(req.Id)
|
FriendMod.DelCardInfo(req.Id)
|
||||||
player.AddCard(CardInfo.CardId)
|
player.AddCard(CardInfo.CardId)
|
||||||
player.AddLog(CardInfo.AUid, friend.LOG_TYPE_CARD_SEND_ACCEPT, fmt.Sprintf("%d", CardInfo.CardId), GoUtil.Now())
|
uid := CardInfo.AUid
|
||||||
|
if CardInfo.Type == card.TYPE_CARD_GIVE {
|
||||||
|
uid = CardInfo.BUid
|
||||||
|
}
|
||||||
|
player.AddLog(uid, friend.LOG_TYPE_CARD_SEND_ACCEPT, fmt.Sprintf("%d", CardInfo.CardId), GoUtil.Now())
|
||||||
player.PlayMod.save()
|
player.PlayMod.save()
|
||||||
player.PushClientRes(&msg.ResGetFriendCard{
|
player.PushClientRes(&msg.ResGetFriendCard{
|
||||||
Code: msg.RES_CODE_SUCCESS,
|
Code: msg.RES_CODE_SUCCESS,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user