This commit is contained in:
aozhiwei 2020-07-09 16:55:33 +08:00
parent cadc317deb
commit 1960dbcd33
2 changed files with 10 additions and 6 deletions

View File

@ -89,11 +89,14 @@ static RoomType_e GetHumanRoomType(const cs::CMJoin& msg, int& game_times)
time_t register_time = f8::ExtractRegisterTimeFromSessionId(msg.session_id()); time_t register_time = f8::ExtractRegisterTimeFromSessionId(msg.session_id());
#if 1 #if 1
if (!msg.team_uuid().empty()) {
} else {
if (a8::BetweenDays(Global::g_nowtime, register_time) <= 0) { if (a8::BetweenDays(Global::g_nowtime, register_time) <= 0) {
return RT_OldBrid1; return RT_OldBrid1;
} else { } else {
return RT_OldBrid2; return RT_OldBrid2;
} }
}
#else #else
if (rank >= 0 && rank <= 10) { if (rank >= 0 && rank <= 10) {
return RT_OldBrid1; return RT_OldBrid1;

View File

@ -671,6 +671,7 @@ message MFTeamMember
optional int32 game_times = 4; // optional int32 game_times = 4; //
optional int32 win_times = 5; // optional int32 win_times = 5; //
optional int32 kill_times = 6; // optional int32 kill_times = 6; //
optional int32 create_time = 7; //
} }
//end mfmsg //end mfmsg