This commit is contained in:
aozhiwei 2020-06-23 12:40:59 +08:00
parent a8c53babd6
commit 42bd7281fd

View File

@ -824,6 +824,9 @@ void Player::Update(long long tick)
role_data.last_save_time = App::Instance()->nowtime;
SaveToDB(a8::XParams(), nullptr, nullptr);
}
if (App::Instance()->IsTimeToReset(role_data.last_save_time)) {
OnDailyReset();
}
}
const std::string Player::AccountId()