This commit is contained in:
aozhiwei 2020-09-17 19:18:08 +08:00
parent 9d637cf088
commit f0c6445d06
3 changed files with 5 additions and 3 deletions

View File

@ -81,5 +81,6 @@ private:
bool dirty_ = false;
timer_list* dirty_timer_ = nullptr;
std::map<std::string, GuildMember*> member_hash_;
std::list<GuildMember*> sorted_members_;
ss::MFGuildLogDB* logdb_ = nullptr;
};

View File

@ -978,9 +978,9 @@ void Player::FillApplyList(const cs::MFPaging& paging, cs::SMFriendApplyList& re
}
*respmsg.mutable_paging() = paging;
if (paging.page_size() > 0) {
respmsg.mutable_paging()->set_total_page(ceil(i / paging.page_size()));
respmsg.mutable_paging()->set__total_page(ceil(i / paging.page_size()));
} else {
respmsg.mutable_paging()->set_total_page(1);
respmsg.mutable_paging()->set__total_page(1);
}
}

View File

@ -26,7 +26,8 @@ message MFPaging
{
optional int64 curr_page = 1; //0
optional int32 page_size = 2; //
optional int32 total_page = 3; //
optional int32 _total_page = 3; //
optional int32 _total_count = 4; //
}
//(线db)