Exemple #1
0
        public IActionResult func_valid_mobile(string account, string mobile)
        {
            if (account.IsNullOrEmpty() || !FuncHelper.IsMobile(account) && !Utilities.IsValidEmail(account))
            {
                return(this.FuncResult(new APIReturn(10000, "参数错误(account)")));
            }
            if (string.IsNullOrEmpty(mobile) || mobile.Length < 7)
            {
                return(this.FuncResult(new APIReturn(10000, "参数错误(mobile)")));
            }
            var dicParams = this.DicParams;

            dicParams.Add("account", account);
            dicParams.Add("mobile", mobile);
            return(this.FuncResult(DC2Invoker.InvokeHttp("valid_mobile", HttpMethod.Get, dicParams)));
        }
Exemple #2
0
        public IActionResult func_IsExistAcct(string account, int checkactive)
        {
            if (account.IsNullOrEmpty())
            {
                return(this.FuncResult(new APIReturn(10000, "参数错误(account)")));
            }
            if (FuncHelper.IsMobile(account))
            {
            }
            else if (!account.Contains("@") || !account.EndsWith(".com"))
            {
                return(this.FuncResult(new APIReturn(10000, "参数错误(account)")));
            }
            var dicParams = this.DicParams;

            dicParams.Add("account", account);
            dicParams.Add("checkactive", checkactive);
            return(this.FuncResult(DC2Invoker.InvokeHttp("isexist_acct", HttpMethod.Get, dicParams)));
        }