This commit is contained in:
aozhiwei 2020-06-22 16:31:33 +08:00
parent a0f19fa303
commit d7c4328324
5 changed files with 24 additions and 1 deletions

View File

@ -87,7 +87,7 @@ bool App::Init(int argc, char* argv[])
HandlerMgr::Instance()->Init(); HandlerMgr::Instance()->Init();
a8::Timer::Instance()->Init(); a8::Timer::Instance()->Init();
f8::MsgQueue::Instance()->Init(); f8::MsgQueue::Instance()->Init();
f8::TGLog::Instance()->Init(a8::Format(PROJ_NAME_FMT, {GAME_ID}), false); f8::TGLog::Instance()->Init(a8::Format(PROJ_NAME_FMT, {GAME_ID}), true);
GameLog::Instance()->Init(); GameLog::Instance()->Init();
a8::IoLoop::Instance()->Init(1); a8::IoLoop::Instance()->Init(1);
JsonDataMgr::Instance()->Init(); JsonDataMgr::Instance()->Init();

View File

@ -17,6 +17,8 @@ class Player
a8::TimerAttacher timer_attacher; a8::TimerAttacher timer_attacher;
Friend myself; Friend myself;
std::string account_id;
std::string session_id;
int today_invite_times = 0; int today_invite_times = 0;
int last_invite_time = 0; int last_invite_time = 0;

View File

@ -63,4 +63,5 @@ enum SMMessageId_e
_SMCustomMsgNotify = 503; _SMCustomMsgNotify = 503;
_SMUserTempCustomDataUpdate = 504; _SMUserTempCustomDataUpdate = 504;
_SMDeleteFriendNotify = 505; _SMDeleteFriendNotify = 505;
_SMUpdateAccountInfo = 506;
} }

View File

@ -48,6 +48,12 @@ message MFUserTempCustomData
optional int64 value3 = 3 [default = 0]; //3 optional int64 value3 = 3 [default = 0]; //3
} }
//()
message MFAccountInfo
{
}
// //
message MFUserInfo message MFUserInfo
{ {
@ -78,6 +84,7 @@ message SMLogin
{ {
optional int32 errcode = 1; // optional int32 errcode = 1; //
optional string errmsg = 2; // optional string errmsg = 2; //
optional MFAccountInfo account_info = 3; //
} }
//() //()
@ -363,3 +370,9 @@ message SMUserTempCustomDataUpdate
optional string account_id = 1; //id optional string account_id = 1; //id
optional MFUserTempCustomData temp_custom_data = 2; // optional MFUserTempCustomData temp_custom_data = 2; //
} }
//
message SMUpdateAccountInfo
{
}

View File

@ -31,6 +31,13 @@ message MFBaseUserDataDB
optional int64 base_data_version = 100; // optional int64 base_data_version = 100; //
} }
message MFRole
{
optional int32 today_apply_times = 1;
optional int32 save_count = 2;
optional int32 last_save_time = 3;
}
message MFGroupMemberDB message MFGroupMemberDB
{ {
optional MFBaseUserDataDB base_data = 1; // optional MFBaseUserDataDB base_data = 1; //