コード例 #1
0
 /// <summary>
 ///     违章查询验证码图片
 /// </summary>
 /// <returns></returns>
 public byte[] GetTrafficCodeImg()
 {
     try
     {
         var result = new TrafficVioQuery().CodeImg();
         return(result);
     }
     catch (Exception ex)
     {
         LogHelper.GetInstance().Error(ex.ToString());
         return(null);
     }
 }
コード例 #2
0
 /// <summary>
 ///     违章记录查询
 /// </summary>
 /// <param name="no">车牌号</param>
 /// <param name="frameNo">车架号 后6位</param>
 /// <param name="type">车类型</param>
 /// <param name="vcode">验证码</param>
 /// <returns></returns>
 public string GetTrafficRecode(string no, string frameNo, string type, string vcode)
 {
     try
     {
         var result = new TrafficVioQuery().Query(no, frameNo, vcode, type);
         if (result == null)
         {
             return(new ResultFormat(0, "远程服务无响应,请至'公安交管信息网'查询").ToString());
         }
         return(new ResultFormat(1, result).ToString());
     }
     catch (Exception ex)
     {
         LogHelper.GetInstance().Error(ex.ToString());
         return(new ResultFormat(0, ex.ToString()).ToString());
     }
 }