This commit is contained in:
aozhiwei 2020-09-25 11:11:38 +08:00
parent 143483634b
commit 39b3714fbf
2 changed files with 2 additions and 7 deletions

View File

@ -294,14 +294,8 @@ void Guild::_CMGuildApplyList(f8::MsgHdr& hdr, const cs::CMGuildApplyList& msg)
std::string fmtstr = "SELECT '' AS account_id"; std::string fmtstr = "SELECT '' AS account_id";
std::vector<a8::XValue> sql_params; std::vector<a8::XValue> sql_params;
{ {
#if 0
for (auto& pair : black_hash_) {
fmtstr += " UNION SELECT '%s'";
sql_params.push_back(a8::XValue(pair.second->base_data.account_id));
}
sql_params.push_back(a8::XValue(last_apply_idx_)); sql_params.push_back(a8::XValue(last_apply_idx_));
sql_params.push_back(a8::XValue(myself.base_data.account_id)); sql_params.push_back(a8::XValue(forward_msg->context().user_info().base_data().account_id()));
#endif
} }
DBEngine::Instance()->ExecAsyncQuery DBEngine::Instance()->ExecAsyncQuery
( (

View File

@ -84,6 +84,7 @@ private:
private: private:
bool dirty_ = false; bool dirty_ = false;
long long last_apply_idx_ = 0;
timer_list* dirty_timer_ = nullptr; timer_list* dirty_timer_ = nullptr;
std::map<std::string, GuildMember*> member_hash_; std::map<std::string, GuildMember*> member_hash_;
std::vector<GuildMember*> sorted_members_; std::vector<GuildMember*> sorted_members_;