1
This commit is contained in:
parent
fae0d73d5b
commit
a573abdbe6
@ -302,6 +302,7 @@ void PlayerMgr::AsyncLogin2(const cs::CMLogin& msg)
|
||||
PlayerMgr::Instance()->AsyncLoginOnOk
|
||||
(
|
||||
data_set->at(0).at(0), //account_id
|
||||
msg->session_id(), //session_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
|
||||
@ -347,6 +348,7 @@ void PlayerMgr::AsyncLogin2(const cs::CMLogin& msg)
|
||||
}
|
||||
|
||||
void PlayerMgr::AsyncLoginOnOk(const std::string& account_id,
|
||||
const std::string& session_id,
|
||||
const std::string& nickname,
|
||||
const std::string& avatar_url,
|
||||
int sex,
|
||||
@ -379,6 +381,7 @@ void PlayerMgr::AsyncLoginOnOk(const std::string& account_id,
|
||||
hum->myself.base_data.user_value3 = user_value3;
|
||||
hum->myself.base_data.online = true;
|
||||
hum->myself.base_data.last_login_time = App::Instance()->nowtime;
|
||||
hum->role_data.session_id = session_id;
|
||||
hum->Init();
|
||||
{
|
||||
ss::MFUserDB user_db;
|
||||
|
@ -58,6 +58,7 @@ class PlayerMgr : public a8::Singleton<PlayerMgr>
|
||||
void AsyncLogin1(const cs::CMLogin& msg);
|
||||
void AsyncLogin2(const cs::CMLogin& msg);
|
||||
void AsyncLoginOnOk(const std::string& account_id,
|
||||
const std::string& session_id,
|
||||
const std::string& nickname,
|
||||
const std::string& avatar_url,
|
||||
int sex,
|
||||
|
@ -69,7 +69,6 @@ struct Event
|
||||
|
||||
struct RoleData
|
||||
{
|
||||
std::string account_id;
|
||||
std::string session_id;
|
||||
int today_apply_times = 0;
|
||||
int save_count = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user