Exemplo n.º 1
0
        /// <summary>
        /// 注销
        /// </summary>
        public void LoginOff()
        {
            if (isLogin)
            {
                if (DataManager.Instance.Cookies != null)
                {
                    HttpService.LoginOff();

                    LoginData = null;
                    Account   = null;
                    Password  = null;
                    cookies   = null;
                    LevelBrandDy.Clear();
                    Delist = null;
                    wareHouses.Clear();
                    WhiteEnable = false;
                    BlackEnable = false;
                    USeManager.Instance.Stop();
                    USeManager.Instance.Start();
                    isLogin = false;
                    IsLoginEvent?.Invoke(false);//触发注销成功事件
                }
            }
        }