1
This commit is contained in:
parent
7fed4537f8
commit
592136e90f
@ -111,7 +111,7 @@ bool App::Init(int argc, char* argv[])
|
|||||||
AsyncTaskMgr::Instance()->Init();
|
AsyncTaskMgr::Instance()->Init();
|
||||||
GuildMgr::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,
|
instance_id,
|
||||||
getpid(),
|
getpid(),
|
||||||
|
@ -70,11 +70,17 @@ struct RecommandFriendTask
|
|||||||
cs::SMRecommandFriend msg;
|
cs::SMRecommandFriend msg;
|
||||||
for (auto& pair : recommand_friends) {
|
for (auto& pair : recommand_friends) {
|
||||||
if (msg.friend_list_size() < 4) {
|
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() ;
|
auto p = msg.add_friend_list() ;
|
||||||
*p = pair.second;
|
*p = pair.second;
|
||||||
{
|
{
|
||||||
int target_channel = f8::ExtractChannelIdFromAccountId
|
|
||||||
(p->base_data().account_id());
|
|
||||||
App::Instance()->PreProcAvatarUrl
|
App::Instance()->PreProcAvatarUrl
|
||||||
(my_channel,
|
(my_channel,
|
||||||
target_channel,
|
target_channel,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user