1
This commit is contained in:
commit
c45438fa34
@ -169,13 +169,16 @@ void Player::_CMFriendApplyList(f8::MsgHdr& hdr, const cs::CMFriendApplyList& ms
|
||||
apply.base_data.user_value2 = a8::XValue(row[9]);
|
||||
apply.base_data.user_value3 = a8::XValue(row[10]);
|
||||
hum->apply_list_.push_back(apply);
|
||||
#if 0
|
||||
if (apply.idx > hum->last_apply_idx_) {
|
||||
hum->last_apply_idx_ = apply.idx;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
cs::SMFriendApplyList respmsg;
|
||||
hum->FillApplyList(*paging, respmsg);
|
||||
hum->SendMsg(respmsg);
|
||||
hum->apply_list_.clear();
|
||||
}
|
||||
delete paging;
|
||||
};
|
||||
@ -553,7 +556,7 @@ void Player::SaveToDB()
|
||||
auto on_error =
|
||||
[] (a8::XParams& param, int error_code, const std::string& error_msg)
|
||||
{
|
||||
|
||||
printf("xxxxx=n");
|
||||
};
|
||||
|
||||
a8::XObject conn_info = DBEngine::Instance()->GetConnInfo(myself.crc32_code);
|
||||
|
@ -275,16 +275,17 @@ void PlayerMgr::AsyncLogin2(const cs::CMLogin& msg)
|
||||
""
|
||||
);
|
||||
} else {
|
||||
PlayerMgr::Instance()->AsyncLoginOnOk(
|
||||
data_set->at(0).at(0),
|
||||
data_set->at(0).at(1),
|
||||
data_set->at(0).at(2),
|
||||
a8::XValue(data_set->at(0).at(3)),
|
||||
a8::XValue(data_set->at(0).at(4)),
|
||||
a8::XValue(data_set->at(0).at(6)),
|
||||
a8::XValue(data_set->at(0).at(5)),
|
||||
a8::XValue(data_set->at(0).at(7)),
|
||||
a8::XValue(data_set->at(0).at(8))
|
||||
PlayerMgr::Instance()->AsyncLoginOnOk
|
||||
(
|
||||
data_set->at(0).at(0), //account_id
|
||||
data_set->at(0).at(1), //nickname
|
||||
data_set->at(0).at(2), //avatar_url
|
||||
a8::XValue(data_set->at(0).at(3)), //sex
|
||||
a8::XValue(data_set->at(0).at(4)), //data_version1
|
||||
data_set->at(0).at(5), //friend_data
|
||||
a8::XValue(data_set->at(0).at(6)), //user_value1
|
||||
a8::XValue(data_set->at(0).at(7)), //user_value2
|
||||
a8::XValue(data_set->at(0).at(8)) //user_value3
|
||||
);
|
||||
}
|
||||
delete msg;
|
||||
@ -325,8 +326,8 @@ void PlayerMgr::AsyncLoginOnOk(const std::string& account_id,
|
||||
const std::string& nickname,
|
||||
const std::string& avatar_url,
|
||||
int sex,
|
||||
const std::string& friend_data,
|
||||
int data_version1,
|
||||
const std::string& friend_data,
|
||||
long long user_value1,
|
||||
long long user_value2,
|
||||
long long user_value3)
|
||||
|
@ -56,8 +56,8 @@ class PlayerMgr : public a8::Singleton<PlayerMgr>
|
||||
const std::string& nickname,
|
||||
const std::string& avatar_url,
|
||||
int sex,
|
||||
const std::string& friend_data,
|
||||
int data_version1,
|
||||
const std::string& friend_data,
|
||||
long long user_value1,
|
||||
long long user_value2,
|
||||
long long user_value3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user