|
@@ -196,8 +196,18 @@ namespace GFGGame
|
|
|
ViewManager.Show<LoginView>(null, null, true);
|
|
|
}
|
|
|
|
|
|
+ //断线重连后需要处理的事情
|
|
|
+ public static void OnReconnected()
|
|
|
+ {
|
|
|
+ //重连成功请求邮件和公告等离线后会变更的数据
|
|
|
+ NoticeSProxy.ReqSystemNoticeList().Coroutine();
|
|
|
+ MailSProxy.ReqMailCount().Coroutine();
|
|
|
+ FriendSProxy.ReqAllFriendInfos().Coroutine();
|
|
|
+ PoemGallerySProxy.ReqGalleryTheme().Coroutine();
|
|
|
+ }
|
|
|
+
|
|
|
//注销
|
|
|
- public static void Logout()
|
|
|
+ private static void Logout()
|
|
|
{
|
|
|
QDManager.Logout();
|
|
|
PlayerPrefs.DeleteKey(GameConst.PASSWORD_LAST_LOGIN_KEY);
|