Exemplo n.º 1
0
        private R IsApiCheck(Member member)
        {
            var rx = new R();
            var param = new API.GuangdongParams1();
            param.cardNumber = member.IDCard;
            param.compId = member.IDCert;
            param.compName = member.Name;
            param.areaName = member.City;

            var r = API.Guangdong.compProve(param);
            if (r.ResponseCode == "ZT000")
            {
                rx.Code = 0;
                rx.Message = r.ResponseCode;
            }
            else
            {
                rx.Code = 104;
                rx.Message = r.ResponseCode;
                if (!string.IsNullOrEmpty(rx.Message))
                {
                    if (rx.Message.Length > 20)
                    {
                        rx.Message = rx.Message.Substring(0, 20);
                    }
                }
            }
            return rx;
        }
Exemplo n.º 2
0
        public ActionResult hooyes_compProve(Member member)
        {
            var param = new API.GuangdongParams1();
            param.cardNumber = member.IDCard;
            param.compId = member.IDCert;
            param.compName = member.Name;
            param.areaName = member.City;

            var r = API.Guangdong.compProve(param);
            return Json(r, JsonRequestBehavior.AllowGet);
        }