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