protected int GetServerNotifyDisconnectDesc(AbnormalDisconnectNty.AbnormalType abnormalType)
    {
        switch (abnormalType)
        {
        case AbnormalDisconnectNty.AbnormalType.Unknown:
            return(621151);

        case AbnormalDisconnectNty.AbnormalType.AnotherDeviceLogin:
            return(621152);

        case AbnormalDisconnectNty.AbnormalType.ServerLogicError:
            return(621153);

        case AbnormalDisconnectNty.AbnormalType.ServerStop:
            return(621154);

        case AbnormalDisconnectNty.AbnormalType.ClientSendPacketTooQuick:
            return(621156);

        case AbnormalDisconnectNty.AbnormalType.ServerNotRecPacketTooLong:
            return(621157);

        case AbnormalDisconnectNty.AbnormalType.ServerCachePacketTooMuch:
            return(621158);

        case AbnormalDisconnectNty.AbnormalType.SecureError:
            return(621159);

        case AbnormalDisconnectNty.AbnormalType.ClientTimeCheckFailure:
            return(621292);
        }
        return(621259);
    }
 protected void OnServerNotifyDisconnect(short state, AbnormalDisconnectNty down = null)
 {
     Debug.Log("OnGetServiceDisconnect: " + state);
     if (state != 0)
     {
         StateManager.Instance.StateShow(state, 0);
         return;
     }
     if (down == null)
     {
         return;
     }
     NetworkManager.Send(new AbnormalDisconnectAck(), ServerType.Data);
     AbnormalDisconnectNty.AbnormalType abnormalType = down.abnormalType;
     if (abnormalType != AbnormalDisconnectNty.AbnormalType.ClientTimeCheckFailure)
     {
         if (abnormalType != AbnormalDisconnectNty.AbnormalType.BackendMaintain)
         {
             if (abnormalType != AbnormalDisconnectNty.AbnormalType.ServerStop)
             {
                 this.NetworkForceQuitApp(string.Format(GameDataUtils.GetChineseContent(this.GetServerNotifyDisconnectDesc(down.abnormalType), false), down.abnormalType), null);
             }
             else
             {
                 this.ServerStop(down.countDownTime);
             }
         }
         else
         {
             this.ServerConfirmNotice(down.msg, null);
         }
     }
     else
     {
         TimeManager.Instance.IsOpenDebug = true;
         this.NetworkForceQuitApp(string.Format(GameDataUtils.GetChineseContent(this.GetServerNotifyDisconnectDesc(down.abnormalType), false), down.abnormalType), null);
     }
 }