This commit is contained in:
aozhiwei 2020-10-14 16:16:28 +08:00
parent 38ab902d41
commit 48bbb19ab0

View File

@ -761,6 +761,7 @@ void Guild::_CMGuildApplyList(f8::MsgHdr& hdr, const cs::CMGuildApplyList& msg)
apply->base_data.user_value1 = a8::XValue(row[8]); apply->base_data.user_value1 = a8::XValue(row[8]);
apply->base_data.user_value2 = a8::XValue(row[9]); apply->base_data.user_value2 = a8::XValue(row[9]);
apply->base_data.user_value3 = a8::XValue(row[10]); apply->base_data.user_value3 = a8::XValue(row[10]);
apply->base_data.last_login_time = a8::XValue(row[12]);
guild->apply_hash_[apply->idx] = apply; guild->apply_hash_[apply->idx] = apply;
if (apply->idx > guild->last_apply_idx_) { if (apply->idx > guild->last_apply_idx_) {
guild->last_apply_idx_ = apply->idx; guild->last_apply_idx_ = apply->idx;
@ -815,7 +816,7 @@ void Guild::_CMGuildApplyList(f8::MsgHdr& hdr, const cs::CMGuildApplyList& msg)
( (
"SELECT A.idx, A.applyid, A.guild_id, A.sender_id, A.sender_nickname, " "SELECT A.idx, A.applyid, A.guild_id, A.sender_id, A.sender_nickname, "
" A.sender_avatar_url, A.sender_sex, A.sender_data_version1, " " A.sender_avatar_url, A.sender_sex, A.sender_data_version1, "
" A.sender_user_value1, A.sender_user_value2, A.sender_user_value3, A.status " " A.sender_user_value1, A.sender_user_value2, A.sender_user_value3, A.status, A.createtime "
"FROM guild_apply A " "FROM guild_apply A "
" LEFT JOIN (" + fmtstr + ") AS B ON B.account_id = A.sender_id " " LEFT JOIN (" + fmtstr + ") AS B ON B.account_id = A.sender_id "
"WHERE A.idx > %d AND A.guild_id='%s' AND A.status=0 AND " "WHERE A.idx > %d AND A.guild_id='%s' AND A.status=0 AND "