时间线优化
This commit is contained in:
parent
989f68174a
commit
c5f974a39d
@ -77,6 +77,7 @@ func handle(p *Player, m *msg.Msg) error {
|
||||
case msg.HANDLE_TYPE_INVITE_FRIEND: // 邀请好友
|
||||
InviteMod := p.PlayMod.getInviteMod()
|
||||
InviteMod.AddInvite(m.From)
|
||||
p.AddLog(m.From, friend.LOG_TYPE_FRIEND_INVITE, "", m.SendT)
|
||||
p.PlayMod.save()
|
||||
p.PushClientRes(InviteMod.NotifySuccess())
|
||||
case msg.HANDLE_TYPE_SEND_CARD: // B收到A赠送的卡牌
|
||||
|
||||
@ -1743,6 +1743,7 @@ func ReqAgreeCardGive(player *Player, buf []byte) error {
|
||||
Code: msg.RES_CODE_SUCCESS,
|
||||
Id: req.Id,
|
||||
})
|
||||
player.AddLog(CardInfo.AUid, friend.LOG_TYPE_CARD_GIVE_ACCEPT, strconv.Itoa(CardInfo.CardId), GoUtil.Now())
|
||||
player.PlayMod.save()
|
||||
player.TeLog("card_require_reply", map[string]interface{}{
|
||||
"card_id": CardInfo.CardId,
|
||||
|
||||
@ -72,6 +72,8 @@ const (
|
||||
LOG_TYPE_CARD_SEND_ACCEPT = 25 // 收到赠送卡牌
|
||||
LOG_TYPE_PLAYROOM_CAT_WIN = 26 // 小猫游戏,给小猫成功装箱
|
||||
LOG_TYPE_PLAYROOM_CAT_LOSE = 27 // 小猫游戏,装箱小猫未成功
|
||||
LOG_TYPE_CARD_GIVE_ACCEPT = 28 // 接受卡牌请求
|
||||
LOG_TYPE_FRIEND_INVITE = 29 // 邀请注册
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user