facebook优化
This commit is contained in:
parent
a562733d9f
commit
5808380440
@ -2564,6 +2564,12 @@ func ReqAutoAddInviteFriend(args []interface{}) error {
|
||||
proto.Unmarshal(buf, req)
|
||||
FriendMod := player.PlayMod.getFriendMod()
|
||||
Uid := int(req.Id)
|
||||
if Uid == 0 {
|
||||
player.PushClientRes(&msg.ResAutoAddInviteFriend{
|
||||
ResultCode: int32(msg.RES_CODE_FAIL),
|
||||
})
|
||||
return fmt.Errorf("Uid wrong %d", Uid)
|
||||
}
|
||||
FriendMod.AddFriend(Uid)
|
||||
player.PlayMod.save()
|
||||
player.PushClientRes(&msg.ResAutoAddInviteFriend{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user