添加埋点信息

This commit is contained in:
aozhiwei 2020-06-01 18:35:09 +08:00
parent 3692dcdde4
commit d1a1cb8de9
2 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ void GameLog::GameStart(Player* hum)
prop->SetVal("account_register_utctime", hum->account_registertime);
prop->SetVal("account_register_date", a8::TimestampToDateTime(hum->account_registertime));
prop->SetVal("game_uniid", a8::XValue(hum->room->GetRoomUuid()).GetString());
prop->SetVal("game_type", a8::XValue(hum->room->GetRoomType()).GetString());
//prop->SetVal("game_param", "");
prop->SetVal("nickname", hum->name);
//prop->SetVal("localuuid", "");
@ -58,6 +59,7 @@ void GameLog::GameEnd(Player* hum)
prop->SetVal("account_register_utctime", hum->account_registertime);
prop->SetVal("account_register_date", a8::TimestampToDateTime(hum->account_registertime));
prop->SetVal("game_uniid", a8::XValue(hum->room->GetRoomUuid()).GetString());
prop->SetVal("game_type", a8::XValue(hum->room->GetRoomType()).GetString());
//prop->SetVal("game_param", "");
prop->SetVal("game_gold", hum->stats.gold);
prop->SetVal("game_score", hum->stats.score);

View File

@ -195,6 +195,7 @@ void Room::AddPlayer(Player* hum)
hum->RefreshView();
AddPlayerPostProc(hum);
NotifyUiUpdate();
GameLog::Instance()->GameStart(hum);
}
int Room::AllocUniid()