zoukankan      html  css  js  c++  java
  • 身份证姓名与身份证号校验

    {
      "IdentityAuthConfig": {
        "url": "http://api.chinadatapay.com/communication/personal/1882",
        "key": ""
      }  
    }
              
              

               var ApiResponse = new IdentityAuthReply();


              var Content = new FormUrlEncodedContent(new[] { new KeyValuePair<string,string>("key",identityauthconfig.Key), new KeyValuePair<string,string>("name",body.idCardName), new KeyValuePair<string,string>("idcard",body.idCardCode) }); var response = await HttpService.PostAsync<dynamic, IdentityAuthResponse>(identityauthconfig.Url, null, Content); if (response != null) { if (response.Data != null) { ApiResponse.Result = response.Data.Result; } }
       public class IdentityAuthReply
        {
            /// <summary>
            /// 1:一致 2:不一致(身份证号存在,姓名不符) 3:异常情况(身份证号不存在)
            /// </summary>
            public string Result { get; set; }
        }
  • 相关阅读:
    插件集合
    postgis_LayerTransform
    react-高阶组件
    react-自定义事件
    Immutable 详解及 React 中实践
    babel-preset-env: a preset that configures Babel for you
    彻底解决Webpack打包慢的问题
    打包图片
    drag
    brush
  • 原文地址:https://www.cnblogs.com/yiyanwei/p/14718353.html
Copyright © 2011-2022 走看看