好友优化
This commit is contained in:
parent
3860669bfe
commit
a3b4937469
@ -1332,7 +1332,7 @@ func ReqApplyFriend(args []interface{}) error {
|
|||||||
To: Uid,
|
To: Uid,
|
||||||
SendT: GoUtil.Now(),
|
SendT: GoUtil.Now(),
|
||||||
}
|
}
|
||||||
G_GameLogicPtr.FriendMgrSend(m)
|
FriendMgrSend(m)
|
||||||
player.PushClientRes(&msg.ResApplyFriend{
|
player.PushClientRes(&msg.ResApplyFriend{
|
||||||
Code: msg.RES_CODE_SUCCESS,
|
Code: msg.RES_CODE_SUCCESS,
|
||||||
})
|
})
|
||||||
@ -1363,7 +1363,7 @@ func ReqAgreeFriend(args []interface{}) error {
|
|||||||
To: Uid,
|
To: Uid,
|
||||||
SendT: GoUtil.Now(),
|
SendT: GoUtil.Now(),
|
||||||
}
|
}
|
||||||
G_GameLogicPtr.FriendMgrSend(m)
|
FriendMgrSend(m)
|
||||||
FriendMod.AddFriend(Uid)
|
FriendMod.AddFriend(Uid)
|
||||||
player.PlayMod.save()
|
player.PlayMod.save()
|
||||||
player.PushClientRes(&msg.ResAgreeFriend{
|
player.PushClientRes(&msg.ResAgreeFriend{
|
||||||
@ -1388,7 +1388,7 @@ func ReqDelFriend(args []interface{}) error {
|
|||||||
To: Uid,
|
To: Uid,
|
||||||
SendT: GoUtil.Now(),
|
SendT: GoUtil.Now(),
|
||||||
}
|
}
|
||||||
G_GameLogicPtr.FriendMgrSend(m)
|
FriendMgrSend(m)
|
||||||
FriendMod := player.PlayMod.getFriendMod()
|
FriendMod := player.PlayMod.getFriendMod()
|
||||||
FriendMod.DelFriend(Uid)
|
FriendMod.DelFriend(Uid)
|
||||||
player.PlayMod.save()
|
player.PlayMod.save()
|
||||||
@ -1423,7 +1423,7 @@ func ReqRefuseFriend(args []interface{}) error {
|
|||||||
To: Uid,
|
To: Uid,
|
||||||
SendT: GoUtil.Now(),
|
SendT: GoUtil.Now(),
|
||||||
}
|
}
|
||||||
G_GameLogicPtr.FriendMgrSend(m)
|
FriendMgrSend(m)
|
||||||
FriendApplyBackData(player)
|
FriendApplyBackData(player)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user