Beispiel #1
0
        public HttpResponseMessage SubmitIDInformation()
        {
            object result         = string.Empty;
            int    netLoanApplyId = DNTRequest.GetInt("netLoanApplyId", -1);
            string fontId         = DNTRequest.GetString("fontId");
            string bankId         = DNTRequest.GetString("bankId");
            string realName       = DNTRequest.GetString("realName");
            string idNo           = DNTRequest.GetString("idNo");
            string birth          = DNTRequest.GetString("birth");
            string national       = DNTRequest.GetString("national");
            string address        = DNTRequest.GetString("address");
            string authority      = DNTRequest.GetString("authority");
            string validperiod    = DNTRequest.GetString("validperiod");
            string faceNo         = DNTRequest.GetString("faceNo");
            string token          = DNTRequest.GetString("token");

            LoanInterface.cookieValue = token;
            result = LoanInterface.SubmitIDInformation(fontId, bankId, realName, idNo, birth, national, address, authority, validperiod, faceNo, netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #2
0
        public HttpResponseMessage CheckMonbileIsRegister()
        {
            object result         = string.Empty;
            int    netLoanApplyId = DNTRequest.GetInt("netLoanApplyId", -1);
            string telNo          = DNTRequest.GetString("telNo");

            result = LoanInterface.CheckMonbileIsRegister(telNo, netLoanApplyId);
            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #3
0
        public HttpResponseMessage ComprehensiveQuery()
        {
            object result         = string.Empty;
            int    netLoanApplyId = DNTRequest.GetInt("netLoanApplyId", -1);
            string token          = DNTRequest.GetString("token");

            LoanInterface.cookieValue = token;
            result = LoanInterface.ComprehensiveQuery(netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #4
0
        public HttpResponseMessage CheckUserIsAuthentication()
        {
            object result         = string.Empty;
            int    netLoanApplyId = DNTRequest.GetInt("netLoanApplyId", -1);
            string memberId       = DNTRequest.GetString("memberId");
            string customerId     = DNTRequest.GetString("customerId");

            result = LoanInterface.CheckUserIsAuthentication(memberId, customerId, netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #5
0
        public HttpResponseMessage MemerSignIn()
        {
            object result         = string.Empty;
            int    netLoanApplyId = DNTRequest.GetInt("netLoanApplyId", -1);
            string telNo          = DNTRequest.GetString("telNo");
            string password       = DNTRequest.GetString("password");
            string smsCode        = DNTRequest.GetString("smsCode");

            result = LoanInterface.MemerSignIn(telNo, password, smsCode, netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #6
0
        public HttpResponseMessage SubmitLoanApply()
        {
            object result         = string.Empty;
            int    netLoanApplyId = DNTRequest.GetInt("netLoanApplyId", -1);
            string loanAmount     = DNTRequest.GetString("loanAmount");
            string bankId         = DNTRequest.GetString("bankId");
            string token          = DNTRequest.GetString("token");

            LoanInterface.cookieValue = token;
            result = LoanInterface.SubmitLoanApply(loanAmount, bankId, netLoanApplyId);
            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #7
0
        public HttpResponseMessage TaskCreate()
        {
            object result         = string.Empty;
            int    netLoanApplyId = DNTRequest.GetInt("netLoanApplyId", -1);
            string telNo          = DNTRequest.GetString("telNo");
            string servicePwd     = DNTRequest.GetString("servicePwd");
            string token          = DNTRequest.GetString("token");

            LoanInterface.cookieValue = token;
            result = LoanInterface.TaskCreate(telNo, servicePwd, netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #8
0
        public HttpResponseMessage BankCardSmsCodeCheck()
        {
            object result         = string.Empty;
            int    netLoanApplyId = DNTRequest.GetInt("netLoanApplyId", -1);
            string no             = DNTRequest.GetString("no");
            string code           = DNTRequest.GetString("code");
            string token          = DNTRequest.GetString("token");

            LoanInterface.cookieValue = token;
            result = LoanInterface.BankCardSmsCodeCheck(no, code, netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #9
0
        public HttpResponseMessage ConfirmationLoanApply()
        {
            object result              = string.Empty;
            int    netLoanApplyId      = DNTRequest.GetInt("netLoanApplyId", -1);
            string borrowNo            = DNTRequest.GetString("borrowNo");
            string tradePassword       = DNTRequest.GetString("tradePassword");
            string tradePasswordSecond = DNTRequest.GetString("tradePasswordSecond");
            string token = DNTRequest.GetString("token");

            LoanInterface.cookieValue = token;
            result = LoanInterface.ConfirmationLoanApply(borrowNo, tradePassword, tradePasswordSecond, netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #10
0
        public HttpResponseMessage SendOperatorImgCode()
        {
            object result         = string.Empty;
            int    netLoanApplyId = DNTRequest.GetInt("netLoanApplyId", -1);
            string taskId         = DNTRequest.GetString("taskId");
            string telNo          = DNTRequest.GetString("telNo");
            string imgCode        = DNTRequest.GetString("imgCode");
            string token          = DNTRequest.GetString("token");

            LoanInterface.cookieValue = token;
            result = LoanInterface.SendOperatorImgCode(taskId, telNo, imgCode, netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #11
0
        public HttpResponseMessage BankCardAdd()
        {
            object result         = string.Empty;
            string realName       = DNTRequest.GetString("realName");
            string idNo           = DNTRequest.GetString("idNo");
            string bankCardNo     = DNTRequest.GetString("bankCardNo");
            string telNo          = DNTRequest.GetString("telNo");
            int    cash           = DNTRequest.GetInt("cash", -1);
            int    netLoanApplyId = DNTRequest.GetInt("netLoanApplyId", -1);
            string token          = DNTRequest.GetString("token");

            LoanInterface.cookieValue = token;
            result = LoanInterface.BankCardAdd(realName, idNo, bankCardNo, telNo, cash, netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #12
0
        public Object ConfirmationOfAuthorization()
        {
            object result             = string.Empty;
            int    netLoanApplyId     = DNTRequest.GetInt("netLoanApplyId", -1);
            string identityCardNumber = DNTRequest.GetString("identityCardNumber");
            string accountExec        = DNTRequest.GetString("accountExec");
            string authorizedPassword = DNTRequest.GetString("authorizedPassword");
            string borrowNo           = DNTRequest.GetString("borrowNo");
            string operatorName       = DNTRequest.GetString("operatorName");
            string operatorId         = DNTRequest.GetString("operatorId");
            string token = DNTRequest.GetString("token");

            LoanInterface.cookieValue = token;
            result = LoanInterface.ConfirmationOfAuthorization(identityCardNumber, accountExec, authorizedPassword, operatorName, operatorId, borrowNo, netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #13
0
        public HttpResponseMessage TaskUpdate()
        {
            object result         = string.Empty;
            int    netLoanApplyId = DNTRequest.GetInt("netLoanApplyId", -1);
            string smsCode        = DNTRequest.GetString("smsCode");
            string taskId         = DNTRequest.GetString("taskId");
            string servicePwd     = DNTRequest.GetString("servicePwd");
            string imgCode        = DNTRequest.GetString("imgCode");
            string realName       = DNTRequest.GetString("realName");
            string idNo           = DNTRequest.GetString("idNo");
            string token          = DNTRequest.GetString("token");

            LoanInterface.cookieValue = token;
            result = LoanInterface.TaskUpdate(smsCode, taskId, servicePwd, imgCode, realName, idNo, netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
Beispiel #14
0
        public HttpResponseMessage ImagesUpload()
        {
            object result         = string.Empty;
            int    netLoanApplyId = DNTRequest.GetInt("netLoanApplyId", -1);
            string base64Code     = DNTRequest.GetString("base64Code");
            string token          = DNTRequest.GetString("token");

            byte[] photoData = new byte[0];

            HttpContext.Current.Response.ContentType     = "application/octet-stream";
            HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.GetEncoding("UTF-8");
            photoData = HttpContext.Current.Request.BinaryRead(HttpContext.Current.Request.TotalBytes);

            //photoData = Convert.FromBase64String(base64Code);

            LoanInterface.cookieValue = token;
            result = LoanInterface.ImagesUpload(base64Code, photoData, netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }