This commit is contained in:
aozhiwei 2020-07-03 14:09:47 +08:00
parent 30a0933a91
commit 0a7333ed8a

View File

@ -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("已经是好友");