This commit is contained in:
aozhiwei 2020-09-25 19:24:16 +08:00
parent 218943f512
commit 924b98dd6c
3 changed files with 5 additions and 4 deletions

View File

@ -53,7 +53,8 @@ enum NetHandler_e
enum ReadPointFlag enum ReadPointFlag
{ {
RPF_Apply = 0 RPF_FriendApply = 0,
RPF_GuildApply = 1
}; };
enum GuildMemberQuitReason enum GuildMemberQuitReason

View File

@ -238,7 +238,7 @@ void Player::_CMFriendApplyList(f8::MsgHdr& hdr, const cs::CMFriendApplyList& ms
cs::SMFriendApplyList respmsg; cs::SMFriendApplyList respmsg;
hum->FillApplyList(*paging, respmsg); hum->FillApplyList(*paging, respmsg);
hum->SendMsg(respmsg); hum->SendMsg(respmsg);
a8::UnSetBitFlag(hum->red_point_flags_, RPF_Apply); a8::UnSetBitFlag(hum->red_point_flags_, RPF_FriendApply);
hum->SyncRedPoint(); hum->SyncRedPoint();
} }
delete paging; delete paging;
@ -1687,7 +1687,7 @@ void Player::RecalcRedPoint()
Player* hum = PlayerMgr::Instance()->GetPlayerByAccountId(param.sender.GetString()); Player* hum = PlayerMgr::Instance()->GetPlayerByAccountId(param.sender.GetString());
if (hum) { if (hum) {
if (data_set && data_set->size() > 0) { if (data_set && data_set->size() > 0) {
a8::SetBitFlag(hum->red_point_flags_, RPF_Apply); a8::SetBitFlag(hum->red_point_flags_, RPF_FriendApply);
hum->SyncRedPoint(); hum->SyncRedPoint();
} }
} }

View File

@ -641,7 +641,7 @@ message SMUpdateAccountInfo
// //
message SMUpdateRedPointNotify message SMUpdateRedPointNotify
{ {
optional int32 red_point_flags = 1; // 1<<0: optional int32 red_point_flags = 1; // 1<<0: 1<<1:
} }
// //