Skip to content

IC卡读卡Windows服务(供浏览器等HTTP调用)

License

Notifications You must be signed in to change notification settings

maokaogo/ICCardReadService

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

ICCardReadService

IC读卡Windows服务
注意:目前只支持读取卡ID,其他功能请自行扩展。
默认端口27813,请自行修改配置文件。

调用方式

  function geticcard(){
     $.ajax({
         async:false,
         type:"get",
         dataType:"json",
         url:"http://localhost:27813/read",
         success:function(data){
             var rs=eval(data);
             $("#iccardId").val(rs.cardId);
         },
         error: function (jqXHR, textStatus, errorThrown) {
             if(jqXHR.responseText!=null&&jqXHR.responseText!=""&&jqXHR.responseText!=undefined){
                 alert("读取IC卡出错:"+jqXHR.responseText);
             }else{
                 alert("请先确认IC卡读卡器是否连接正常");
             }            
        }
     })
  }

About

IC卡读卡Windows服务(供浏览器等HTTP调用)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.1%
  • Batchfile 0.9%