Exemple #1
0
        private void CheckLogin()
        {
            string UserId  = ReStr("CurrentUserId");
            string UserKey = ReStr("CurrentUserKey");

            try
            {
                BLL.UserBLL bll = new BLL.UserBLL();
                if (!bll.CheckLogin(UserId, UserKey))
                {
                    throw new Exception("您的登陆验证没有通过,请尝试重新登陆.");
                }
                else
                {
                    ReTrue();
                }
            }
            catch (Exception ex)
            {
                ReThrow(ex);
            }
        }