Exemplo n.º 1
0
        /// <summary>
        /// 验证手机验证码
        /// </summary>
        /// <param name="mobile"></param>
        /// <param name="VCode"></param>
        /// <returns></returns>
        public DataTable CheckMobileVerificationCode(string GUID, string UID, string mobile, string VCode)
        {
            if (!CheckLogin(GUID, UID))//非法登录
            {
                return(dtBase);
            }
            int Flag = LoginUniqueness.MobileMesCheck(mobile, VCode);

            if (Flag > 0)
            {
                dtBase.Clear();
                DataRow LoginVerify = dtBase.NewRow();
                LoginVerify["type"] = "-1";
                if (Flag == 1)
                {
                    LoginVerify["mes"] = "验证码过期";
                }
                else if (Flag == 2)
                {
                    LoginVerify["mes"] = "验证码不正确";
                }
                dtBase.Rows.Add(LoginVerify);
            }
            else
            {
                DataRow LoginVerify = dtBase.NewRow();
                LoginVerify["type"] = "0";
                LoginVerify["mes"]  = "";
                dtBase.Rows.Add(LoginVerify);
            }
            return(dtBase);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取单行数据
        /// </summary>
        /// <param name="filter">指定条件</param>
        /// <returns>返回第一行</returns>
        public DataTable GetPagingSigInfo(string GUID, string UID, string filter)
        {
            DataTable dtLogin = LoginUniqueness.LoginedCheckFromPage(GUID, UID);

            if (dtLogin.Rows.Count > 0)//非法登录
            {
                return(dtLogin);
            }
            int       recnums = 0;
            int       pages   = 0;
            DataTable dt      = GetPagingListInfo(GUID, UID, 1, 1, filter, string.Empty, out recnums, out pages);

            return(dt);
        }