This commit is contained in:
aozhiwei 2020-06-19 14:37:56 +08:00
parent 9c711f3e62
commit e8fea344f4
2 changed files with 16 additions and 0 deletions

View File

@ -38,6 +38,7 @@ void SyncHelper::SyncNewFriend(Player* hum, const std::string& target_id)
{ {
ss::SS_IM_FriendAgreeRequest* notifymsg = ss::SS_IM_FriendAgreeRequest* notifymsg =
(ss::SS_IM_FriendAgreeRequest*)param.sender.GetUserData(); (ss::SS_IM_FriendAgreeRequest*)param.sender.GetUserData();
SyncHelper::Instance()->SS_IM_FriendAgreeRequest_TimeOut(notifymsg);
}, },
[] (const a8::XParams& param) [] (const a8::XParams& param)
{ {
@ -66,6 +67,7 @@ void SyncHelper::SyncDeleteFriend(Player* hum, const std::string& target_id)
{ {
ss::SS_IM_FriendDeleteRequest* notifymsg = ss::SS_IM_FriendDeleteRequest* notifymsg =
(ss::SS_IM_FriendDeleteRequest*)param.sender.GetUserData(); (ss::SS_IM_FriendDeleteRequest*)param.sender.GetUserData();
SyncHelper::Instance()->SS_IM_FriendDeleteRequest_TimeOut(notifymsg);
}, },
[] (const a8::XParams& param) [] (const a8::XParams& param)
{ {
@ -135,3 +137,13 @@ void SyncHelper::RemovePendingRequest(long long seqid)
{ {
pending_request_hash_.erase(seqid); pending_request_hash_.erase(seqid);
} }
void SyncHelper::SS_IM_FriendAgreeRequest_TimeOut(ss::SS_IM_FriendAgreeRequest* msg)
{
}
void SyncHelper::SS_IM_FriendDeleteRequest_TimeOut(ss::SS_IM_FriendDeleteRequest* msg)
{
}

View File

@ -2,7 +2,9 @@
namespace ss namespace ss
{ {
class SS_IM_FriendAgreeRequest;
class SS_IM_FriendAgreeResponse; class SS_IM_FriendAgreeResponse;
class SS_IM_FriendDeleteRequest;
class SS_IM_FriendDeleteResponse; class SS_IM_FriendDeleteResponse;
} }
@ -31,6 +33,8 @@ public:
private: private:
void RemovePendingRequest(long long seqid); void RemovePendingRequest(long long seqid);
void SS_IM_FriendAgreeRequest_TimeOut(ss::SS_IM_FriendAgreeRequest* msg);
void SS_IM_FriendDeleteRequest_TimeOut(ss::SS_IM_FriendDeleteRequest* msg);
private: private:
template <typename T> template <typename T>