Revert "Revert "修复掉线不登陆的情况""

This reverts commit 2f24b9e60019b3675bdab7d732ed6731f571175b.