添加埋点信息
This commit is contained in:
parent
3692dcdde4
commit
d1a1cb8de9
@ -24,6 +24,7 @@ void GameLog::GameStart(Player* hum)
|
|||||||
prop->SetVal("account_register_utctime", hum->account_registertime);
|
prop->SetVal("account_register_utctime", hum->account_registertime);
|
||||||
prop->SetVal("account_register_date", a8::TimestampToDateTime(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_uniid", a8::XValue(hum->room->GetRoomUuid()).GetString());
|
||||||
|
prop->SetVal("game_type", a8::XValue(hum->room->GetRoomType()).GetString());
|
||||||
//prop->SetVal("game_param", "");
|
//prop->SetVal("game_param", "");
|
||||||
prop->SetVal("nickname", hum->name);
|
prop->SetVal("nickname", hum->name);
|
||||||
//prop->SetVal("localuuid", "");
|
//prop->SetVal("localuuid", "");
|
||||||
@ -58,6 +59,7 @@ void GameLog::GameEnd(Player* hum)
|
|||||||
prop->SetVal("account_register_utctime", hum->account_registertime);
|
prop->SetVal("account_register_utctime", hum->account_registertime);
|
||||||
prop->SetVal("account_register_date", a8::TimestampToDateTime(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_uniid", a8::XValue(hum->room->GetRoomUuid()).GetString());
|
||||||
|
prop->SetVal("game_type", a8::XValue(hum->room->GetRoomType()).GetString());
|
||||||
//prop->SetVal("game_param", "");
|
//prop->SetVal("game_param", "");
|
||||||
prop->SetVal("game_gold", hum->stats.gold);
|
prop->SetVal("game_gold", hum->stats.gold);
|
||||||
prop->SetVal("game_score", hum->stats.score);
|
prop->SetVal("game_score", hum->stats.score);
|
||||||
|
@ -195,6 +195,7 @@ void Room::AddPlayer(Player* hum)
|
|||||||
hum->RefreshView();
|
hum->RefreshView();
|
||||||
AddPlayerPostProc(hum);
|
AddPlayerPostProc(hum);
|
||||||
NotifyUiUpdate();
|
NotifyUiUpdate();
|
||||||
|
GameLog::Instance()->GameStart(hum);
|
||||||
}
|
}
|
||||||
|
|
||||||
int Room::AllocUniid()
|
int Room::AllocUniid()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user