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