コード例 #1
0
        public HttpResponseMessage BankCardSmsCode()
        {
            object result           = string.Empty;
            int    consultId        = DNTRequest.GetInt("consultId", -1);
            string realName         = DNTRequest.GetString("realName");
            string token            = DNTRequest.GetString("token");
            string idCardNo         = DNTRequest.GetString("idCardNo");
            string bankCardNo       = DNTRequest.GetString("bankCardNo");
            string telNo            = DNTRequest.GetString("telNo");
            string sign             = DNTRequest.GetString("sign");
            string orderNo          = DNTRequest.GetString("orderNo");
            string timeUnix         = DNTRequest.GetString("timeUnix");
            string merchantsNo      = DNTRequest.GetString("merchantsNo");
            string equipmentNo      = DNTRequest.GetString("equipmentNo");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");
            string orderSource      = DNTRequest.GetString("orderSource");

            NewLoanInterface.cookieValue = token;
            result = NewLoanInterface.BankCardSmsCode(realName, idCardNo, bankCardNo, telNo, sign, orderNo, timeUnix, merchantsNo, equipmentNo, consultId, sskdRequestParas, orderSource);

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

            return(res);
        }
コード例 #2
0
        public HttpResponseMessage Checkmcs()
        {
            object result           = string.Empty;
            string sign             = DNTRequest.GetString("sign");
            string realName         = DNTRequest.GetString("realName");
            string idNo             = DNTRequest.GetString("idNo");
            string returnUrl        = DNTRequest.GetString("returnUrl");
            string consultId        = DNTRequest.GetString("consultId");
            string orderNo          = DNTRequest.GetString("orderNo");
            string telNo            = DNTRequest.GetString("telNo");
            string typeId           = DNTRequest.GetString("typeId");
            string equipmentNo      = DNTRequest.GetString("equipmentNo");
            string merchantsNo      = DNTRequest.GetString("merchantsNo");
            string token            = DNTRequest.GetString("token");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");
            string orderSource      = DNTRequest.GetString("orderSource");

            NewLoanInterface.cookieValue = token;
            result = NewLoanInterface.Checkmcs(consultId, sign, realName, idNo, returnUrl, orderNo, telNo, typeId, equipmentNo, merchantsNo, sskdRequestParas, orderSource);
            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
コード例 #3
0
        public HttpResponseMessage ConfirmationOfAuthorization()
        {
            object result            = string.Empty;
            string sign              = DNTRequest.GetString("sign");
            string orderNo           = DNTRequest.GetString("orderNo");
            string timeUnix          = DNTRequest.GetString("timeUnix");
            int    ConsultId         = DNTRequest.GetInt("ConsultId", -1);
            string merchantsAcount   = DNTRequest.GetString("merchantsAcount");
            string merchantsName     = DNTRequest.GetString("merchantsName");
            string merchantsMobile   = DNTRequest.GetString("merchantsMobile");
            string merchantsIdCardNo = DNTRequest.GetString("merchantsIdCardNo");
            string equipmentNo       = DNTRequest.GetString("equipmentNo");
            string merchantsNo       = DNTRequest.GetString("merchantsNo");
            string token             = DNTRequest.GetString("token");
            string sskdRequestParas  = DNTRequest.GetString("sskdRequestParas");
            string orderSource       = DNTRequest.GetString("orderSource");
            string creditLine        = DNTRequest.GetString("creditLine");
            string borrowNo          = DNTRequest.GetString("borrowNo");

            NewLoanInterface.cookieValue = token;
            result = NewLoanInterface.ConfirmationOfAuthorization(timeUnix, orderNo, sign, token, equipmentNo, merchantsNo, merchantsIdCardNo, merchantsAcount, merchantsMobile, merchantsName, ConsultId, sskdRequestParas, creditLine, borrowNo, orderSource);

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

            return(res);
        }
コード例 #4
0
        public HttpResponseMessage UpdataConsult()
        {
            object result           = string.Empty;
            string ConsultId        = DNTRequest.GetString("ConsultId");
            string ProvinceId       = DNTRequest.GetString("ProvinceId");
            string CityId           = DNTRequest.GetString("CityId");
            string DistrictId       = DNTRequest.GetString("DistrictId");
            string Area             = DNTRequest.GetString("Area");
            string Address          = DNTRequest.GetString("Address");
            string ProfessionInfo   = DNTRequest.GetString("professionInfo");
            string IdentityInfo     = DNTRequest.GetString("identityInfo");
            string AssetInfo        = DNTRequest.GetString("assetInfo");
            string sign             = DNTRequest.GetString("sign");
            string orderNo          = DNTRequest.GetString("orderNo");
            string array            = DNTRequest.GetString("array");
            string token            = DNTRequest.GetString("token");
            string equipmentNo      = DNTRequest.GetString("equipmentNo");
            string merchantsNo      = DNTRequest.GetString("merchantsNo");
            string orderSource      = DNTRequest.GetString("orderSource");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");

            NewLoanInterface.cookieValue = token;
            result = NewLoanInterface.UpdataConsult(ConsultId, ProvinceId, CityId, DistrictId, Area, Address, ProfessionInfo, IdentityInfo, AssetInfo, sign, orderNo, array, equipmentNo, merchantsNo, orderSource, sskdRequestParas);

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

            return(res);
        }
コード例 #5
0
        public HttpResponseMessage SubmitIDInformation()
        {
            object result           = string.Empty;
            int    netLoanApplyId   = DNTRequest.GetInt("netLoanApplyId", -1);
            string sign             = DNTRequest.GetString("sign");
            string faceIds          = DNTRequest.GetString("faceIds");
            string idCardIds        = DNTRequest.GetString("idCardIds");
            string realName         = DNTRequest.GetString("realName");
            string idCardNo         = DNTRequest.GetString("idCardNo");
            string sex              = DNTRequest.GetString("sex");
            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 orderNo          = DNTRequest.GetString("orderNo");
            string equipmentNo      = DNTRequest.GetString("equipmentNo");
            string merchantsNo      = DNTRequest.GetString("merchantsNo");
            string token            = DNTRequest.GetString("token");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");
            string orderSource      = DNTRequest.GetString("orderSource");

            NewLoanInterface.cookieValue = token;
            result = NewLoanInterface.SubmitIDInformation(sign, orderNo, equipmentNo, merchantsNo, faceIds, idCardIds, realName, idCardNo, sex, birth, national, address, authority, validperiod, netLoanApplyId, sskdRequestParas, orderSource);

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

            return(res);
        }
コード例 #6
0
        // GET: UserReport  用户报告
        public HttpResponseMessage AppraisalReport()
        {
            object result           = string.Empty;
            string ConsultId        = DNTRequest.GetString("ConsultId");
            string sign             = DNTRequest.GetString("sign");
            string orderNo          = DNTRequest.GetString("orderNo");
            string timeUnix         = DNTRequest.GetString("timeUnix");
            string reportType       = DNTRequest.GetString("reportType");
            string equipmentNo      = DNTRequest.GetString("equipmentNo");
            string merchantsNo      = DNTRequest.GetString("merchantsNo");
            string token            = DNTRequest.GetString("token");
            string bwjsApi          = DNTRequest.GetString("bwjsApi");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");
            string orderSource      = DNTRequest.GetString("orderSource");


            NewLoanInterface.cookieValue = token;
            result = NewLoanInterface.AppraisalReport(ConsultId, sign, orderNo, timeUnix, reportType, token, merchantsNo, equipmentNo, bwjsApi, sskdRequestParas, orderSource);
            HttpResponseMessage res = new HttpResponseMessage
            {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
コード例 #7
0
        public HttpResponseMessage QueryBusinessPermissions()
        {
            object result           = string.Empty;
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");

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

            return(res);
        }
コード例 #8
0
        public HttpResponseMessage EquipmentMerchantRelation()
        {
            object result           = string.Empty;
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");

            result = NewLoanInterface.MerchantCapture(sskdRequestParas);

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

            return(res);
        }
コード例 #9
0
        public HttpResponseMessage AjaxApiLog()
        {
            object result   = string.Empty;
            string url      = DNTRequest.GetString("url");
            string paramStr = DNTRequest.GetString("paramStr");

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

            return(res);
        }
コード例 #10
0
        public HttpResponseMessage OrderAuthenticationProgressQuery()
        {
            object result           = string.Empty;
            string telNo            = DNTRequest.GetString("telNo");
            string idCardNo         = DNTRequest.GetString("idCardNo");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");

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

            return(res);
        }
コード例 #11
0
        public HttpResponseMessage FilesUpload()
        {
            object result           = string.Empty;
            int    netLoanApplyId   = DNTRequest.GetInt("netLoanApplyId", -1);
            string sign             = DNTRequest.GetString("sign");
            string orderNo          = DNTRequest.GetString("orderNo");
            string equipmentNo      = DNTRequest.GetString("equipmentNo");
            string merchantsNo      = DNTRequest.GetString("merchantsNo");
            string token            = DNTRequest.GetString("token");
            string orderSource      = DNTRequest.GetString("orderSource");
            string base64Codes      = DNTRequest.GetString("base64Codes");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");

            //string[] arr;
            //arr = base64Codes.Split(',');
            //for (int i = 0; i < arr.Length; i++)
            //{

            //}
            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);

            string fileName    = string.Empty;
            string contentType = string.Empty;
            string base64Code  = string.Empty;

            //BitArray photoDataArray = new BitArray(photoData);
            for (int i = 0; i < photoData.Length; i++)
            {
                base64Code = photoData[i].ToString();
                if (!string.IsNullOrEmpty(base64Code))
                {
                    base64Code = base64Code.Replace(" ", "+");
                }
                //fileName=
            }



            NewLoanInterface.cookieValue = token;
            result = NewLoanInterface.ImagesUpload(base64Code, photoData, fileName, contentType, sskdRequestParas);

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

            return(res);
        }
コード例 #12
0
        public HttpResponseMessage FillInTheInformation()
        {
            object result = string.Empty;
            string sskdRequestParasJson = DNTRequest.GetString("sskdRequestParas");
            string array       = DNTRequest.GetString("array");
            string orderSource = DNTRequest.GetString("orderSource");

            result = NewLoanInterface.FillInTheInformation(sskdRequestParasJson, array, orderSource);

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

            return(res);
        }
コード例 #13
0
        public HttpResponseMessage InsertPadConsult()
        {
            object result           = string.Empty;
            string Consult          = DNTRequest.GetString("Consult");
            string equipmentNo      = DNTRequest.GetString("equipmentNo");
            string merchantsNo      = DNTRequest.GetString("merchantsNo");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");

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

            return(res);
        }
コード例 #14
0
        public HttpResponseMessage ApplyStatusChange()
        {
            object result           = string.Empty;
            int    consultId        = DNTRequest.GetInt("consultId", -1);
            int    status           = DNTRequest.GetInt("status", -1);
            int    prevStatus       = DNTRequest.GetInt("prevStatus", -1);
            string sskdModel        = DNTRequest.GetString("sskdModel");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");

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

            return(res);
        }
コード例 #15
0
        public HttpResponseMessage MerchantAcceptance()
        {
            object result            = string.Empty;
            string sskdRequestParas  = DNTRequest.GetString("sskdRequestParas");
            string merchantsAcount   = DNTRequest.GetString("merchantsAcount");
            string merchantsMobile   = DNTRequest.GetString("merchantsMobile");
            string merchantsName     = DNTRequest.GetString("merchantsName");
            string merchantsIdCardNo = DNTRequest.GetString("merchantsIdCardNo");
            string amount            = DNTRequest.GetString("amount");

            result = NewLoanInterface.MerchantAcceptance(sskdRequestParas, merchantsAcount, merchantsMobile, merchantsName, merchantsIdCardNo, amount);
            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
コード例 #16
0
        public HttpResponseMessage GetBankCardListByTwoElements()
        {
            object result           = string.Empty;
            string consultId        = DNTRequest.GetString("consultId");
            string token            = DNTRequest.GetString("token");
            string realName         = DNTRequest.GetString("realName");
            string idCardNo         = DNTRequest.GetString("idCardNo");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");
            string orderSource      = DNTRequest.GetString("orderSource");

            NewLoanInterface.cookieValue = token;
            result = NewLoanInterface.GetBankCardListByTwoElements(consultId, token, realName, idCardNo, sskdRequestParas, orderSource);
            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
コード例 #17
0
        public HttpResponseMessage CheckUserIsAuthentication()
        {
            object result           = string.Empty;
            int    netLoanApplyId   = DNTRequest.GetInt("netLoanApplyId", -1);
            string memberId         = DNTRequest.GetString("memberId");
            string customerId       = DNTRequest.GetString("customerId");
            string token            = DNTRequest.GetString("token");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");

            NewLoanInterface.cookieValue = token;
            result = NewLoanInterface.CheckUserIsAuthentication(memberId, customerId, netLoanApplyId, sskdRequestParas);

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

            return(res);
        }
コード例 #18
0
        public HttpResponseMessage GetaInformation()
        {
            object result           = string.Empty;
            string idNo             = DNTRequest.GetString("idNo");
            string Mobile           = DNTRequest.GetString("Mobile");
            string FullName         = DNTRequest.GetString("FullName");
            string token            = DNTRequest.GetString("token");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");

            NewLoanInterface.cookieValue = token;
            result = NewLoanInterface.GetaInformation(idNo, Mobile, FullName, sskdRequestParas);

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

            return(res);
        }
コード例 #19
0
        public HttpResponseMessage GetRzjd()
        {
            object result = string.Empty;

            string consultId        = DNTRequest.GetString("consultId");
            string orderNo          = DNTRequest.GetString("orderNo");
            string equipmentNo      = DNTRequest.GetString("equipmentNo");
            string merchantsNo      = DNTRequest.GetString("merchantsNo");
            string sign             = DNTRequest.GetString("sign");
            string token            = DNTRequest.GetString("token");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");
            string orderSource      = DNTRequest.GetString("orderSource");

            NewLoanInterface.cookieValue = token;
            result = NewLoanInterface.GetRzjd(consultId, orderNo, merchantsNo, equipmentNo, sign, sskdRequestParas, orderSource);
            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };                                                                                                                                                //

            return(res);
        }
コード例 #20
0
        public HttpResponseMessage InsertConsult()
        {
            object result           = string.Empty;
            string Consult          = DNTRequest.GetString("Consult");
            string equipmentNo      = DNTRequest.GetString("equipmentNo");
            string merchantsNo      = DNTRequest.GetString("merchantsNo");
            string base64Code       = DNTRequest.GetString("base64Code");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");

            if (!string.IsNullOrEmpty(base64Code))
            {
                base64Code = base64Code.Replace(" ", "+");
            }

            result = NewLoanInterface.InsertConsult(Consult, equipmentNo, merchantsNo, base64Code, sskdRequestParas);
            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }
コード例 #21
0
        public HttpResponseMessage ImagesUpload()
        {
            object result           = string.Empty;
            string base64Code       = DNTRequest.GetString("base64Code");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");

            if (!string.IsNullOrEmpty(base64Code))
            {
                base64Code = base64Code.Replace(" ", "+");
                base64Code = base64Code.Replace(" ", "");
                base64Code = base64Code.Trim().Replace("%", "").Replace(",", "").Replace(" ", "+");
                if (base64Code.Length % 4 > 0)
                {
                    base64Code = base64Code.PadRight(base64Code.Length + 4 - base64Code.Length % 4, '=');
                }
            }

            byte[] photoData    = new byte[0];
            string msg          = string.Empty;
            string fileName     = string.Empty;
            string _contentType = "application/x-jpg";

            photoData = DNTRequest.Base64StringToByte(base64Code, ref msg, ref fileName);
            if (!string.IsNullOrEmpty(msg))
            {
                HttpResponseMessage res = new HttpResponseMessage {
                    Content = new StringContent(msg, Encoding.GetEncoding("UTF-8"), "text/plain")
                };
                return(res);
            }
            else
            {
                result = NewLoanInterface.ImagesUpload(base64Code, photoData, fileName, _contentType, sskdRequestParas);

                HttpResponseMessage res = new HttpResponseMessage {
                    Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
                };
                return(res);
            }
        }
コード例 #22
0
        public HttpResponseMessage LoanApplication()
        {
            object result           = string.Empty;
            int    ConsultId        = DNTRequest.GetInt("ConsultId", -1);
            string orderNo          = DNTRequest.GetString("orderNo");
            string sign             = DNTRequest.GetString("sign");
            string timeUnix         = DNTRequest.GetString("timeUnix");
            string bankCardNo       = DNTRequest.GetString("bankCardNo");
            string productId        = DNTRequest.GetString("productId");
            string loanAmount       = DNTRequest.GetString("loanAmount");
            string equipmentNo      = DNTRequest.GetString("equipmentNo");
            string merchantsNo      = DNTRequest.GetString("merchantsNo");
            string token            = DNTRequest.GetString("token");
            string sskdRequestParas = DNTRequest.GetString("sskdRequestParas");
            string orderSource      = DNTRequest.GetString("orderSource");

            NewLoanInterface.cookieValue = token;
            result = NewLoanInterface.LoanApplication(orderNo, sign, ConsultId, bankCardNo, productId, loanAmount, timeUnix, token, equipmentNo, merchantsNo, sskdRequestParas, orderSource);
            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }