Exemplo n.º 1
0
        public AccountVerifyResponse AccountVerify4(string Name, string IDNumber, string BarkNumber, string Mobile)
        {
            AccountVerifyRequest request = new AccountVerifyRequest(this.tltExec);

            request.INFO.REQ_SN = GuidHelper.GenUniqueId();

            request.VALIDR.SUBMIT_TIME  = DateTime.Now.ToString("yyyyMMddHHmmss");
            request.VALIDR.ACCOUNT_NO   = BarkNumber;
            request.VALIDR.ACCOUNT_NAME = Name;
            request.VALIDR.ACCOUNT_PROP = "0";
            request.VALIDR.ID_TYPE      = "0";
            request.VALIDR.ID           = IDNumber;
            request.VALIDR.TEL          = Mobile;

            var response = tltExec.Exec(request);

            return(response as AccountVerifyResponse);
        }
Exemplo n.º 2
0
        public ResponseAccountLogin Verify(VerificationModels model, ref string msg)
        {
            try
            {
                AccountVerifyRequest paraBody = new AccountVerifyRequest();
                paraBody.Email      = model.ReSendEmail;
                paraBody.VerifyCode = model.VerificationCode;

                NSLog.Logger.Info("Verify Request: ", paraBody);
                //====================
                var result = (NSApiResponse)ApiResponse.Post <NSApiResponse>(Commons.ClientSideAccountToVerify, null, paraBody);
                if (result != null)
                {
                    if (result.Success)
                    {
                        dynamic data       = result.Data;
                        var     lstDataRaw = data["Info"];
                        var     lstContent = JsonConvert.SerializeObject(lstDataRaw);
                        var     listData   = JsonConvert.DeserializeObject <ResponseAccountLogin>(lstContent);
                        return(listData);
                    }
                    else
                    {
                        msg = result.Message;
                        //NSLog.Logger.Info("AccountRegisterCreate", result.Message);
                        return(null);
                    }
                }
                else
                {
                    return(null);
                }
                NSLog.Logger.Info("Verify Result", result);
            }
            catch (Exception e)
            {
                NSLog.Logger.Error("Verify_Fail", e);
                return(null);
            }
        }