1
This commit is contained in:
parent
30a0933a91
commit
0a7333ed8a
@ -157,6 +157,12 @@ void Player::_CMFriendList(f8::MsgHdr& hdr, const cs::CMFriendList& msg)
|
||||
void Player::_CMFriendApply(f8::MsgHdr& hdr, const cs::CMFriendApply& msg)
|
||||
{
|
||||
cs::SMFriendApply respmsg;
|
||||
if (GetBlackListById(msg.friend_id())) {
|
||||
respmsg.set_errcode(0);
|
||||
respmsg.set_errmsg("");
|
||||
SendMsg(respmsg);
|
||||
return;
|
||||
}
|
||||
if (GetFriendById(msg.friend_id())) {
|
||||
respmsg.set_errcode(1);
|
||||
respmsg.set_errmsg("已经是好友");
|
||||
|
Loading…
x
Reference in New Issue
Block a user