This commit is contained in:
aozhiwei 2020-11-20 12:57:40 +08:00
parent 7fed4537f8
commit 592136e90f
2 changed files with 9 additions and 3 deletions

View File

@ -111,7 +111,7 @@ bool App::Init(int argc, char* argv[])
AsyncTaskMgr::Instance()->Init();
GuildMgr::Instance()->Init();
a8::UdpLog::Instance()->Info("friend_imserver starting instance_id:%d pid:%d ",
a8::UdpLog::Instance()->Info("friend_imserver starting instance_id:%d pid:%d 13423",
{
instance_id,
getpid(),

View File

@ -70,11 +70,17 @@ struct RecommandFriendTask
cs::SMRecommandFriend msg;
for (auto& pair : recommand_friends) {
if (msg.friend_list_size() < 4) {
int target_gameid = f8::ExtractGameIdFromAccountId
(pair.second.base_data().account_id());
int target_channel = f8::ExtractChannelIdFromAccountId
(pair.second.base_data().account_id());
if (target_gameid != my_gameid || target_channel != my_channel) {
continue;
}
auto p = msg.add_friend_list() ;
*p = pair.second;
{
int target_channel = f8::ExtractChannelIdFromAccountId
(p->base_data().account_id());
App::Instance()->PreProcAvatarUrl
(my_channel,
target_channel,