Selaa lähdekoodia

Bugly异步造成定时器没有销毁问题

huangxiaoyue 1 vuosi sitten
vanhempi
commit
c95b98de61

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/League/LeagueAnsweringView.cs

@@ -82,6 +82,8 @@ namespace GFGGame
             base.OnShown();
             base.OnShown();
 
 
             bool result = await LeagueSproxy.ReqJoinAnswer();
             bool result = await LeagueSproxy.ReqJoinAnswer();
+            if (!isShowing)
+                return;
             if (result)
             if (result)
             {
             {
                 UpdateJoinList();
                 UpdateJoinList();

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/League/LeagueTeaPartyView.cs

@@ -267,6 +267,8 @@ namespace GFGGame
         private async void GetRoleContainerInfos()
         private async void GetRoleContainerInfos()
         {
         {
             bool result = await LeagueSproxy.GetRoleContainerInfos(RoleDataManager.roleId);
             bool result = await LeagueSproxy.GetRoleContainerInfos(RoleDataManager.roleId);
+            if (!isShowing)
+                return;
             if (result)
             if (result)
             {
             {
                 UpDataOverTime();
                 UpDataOverTime();