@@ -63,7 +63,7 @@ namespace GameUI
private void OnApplicationFocus(bool hasFocus)
{
- if (hasFocus && PlayerManager.Instance.isLogin)
+ if (!hasFocus && PlayerManager.Instance.isLogin)
// 退出时记录时间
AccountFileInfo.Instance.playerData.ExitTime = TimeHelper.ClientNow();