🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~[api] post:/tasks/api/localUploads'(此接口针对前端,注意此接口在后台服务器中) *upload:file#大小:1567800,类型jpg,png,gif *string:type#类型 类型值(往下拉) <<< success {"status":"0000","codemsg":"上传成功",data:"data"} <<< error {"status":errorcode,"codemsg":error msg} ~~~ > **查询成功data参数** 如下非测试可用数据,仅供参考,具体参考请求字段: { "url": "xxxxxxxxx",//相对路径 'info':array #ocr识别出的数据 } ocr身份证识别返回示例 { "住址": "武汉市江岸区永清路****", "保留": "", "公民身份号码": "42010619510609****", "出生": "1951-06-09", "头像": "",/*Base64字符串*/ "姓名": "彭*", "性别": "男", "民族": "汉", "orderid":"JH1531180126114835937669", "userid":"1234567" } ocr营业执照 {         "result_num":11,         "res":[             {                 "name":"社会信用代码",                 "value":"9141147VK1L2T"             },             {                 "name":"组成形式",                 "value":"无"             },             {                 "name":"经营范围",                 "value":"健身服务:游泳服务:泳衣泳限的零告,涉及许可经点项目,应以得相关部门许可后方可经营(依法须经批准的项日,经相关部门批准后方可开展经营活动)"             },             {                 "name":"成立日期",                 "value":"2019年08月22日"             },             {                 "name":"法人",                 "value":"传亚飞"             },             {                 "name":"注册资本",                 "value":"无"             },             {                 "name":"证件编号",                 "value":"无"             },             {                 "name":"地址",                 "value":"河向省许书市市房区称注街竹林终"             },             {                 "name":"单位名称",                 "value":"许二市飞二健学有限公司第一分公司"             },             {                 "name":"有效期",                 "value":"长期"             },             {                 "name":"类型",                 "value":"有限责任公司分公司(自然人投资或控股)"             }         ]     } type类型 { "1":"一代身份证", "2":"二代身份证正面", "3":"二代身份证证背面", "4":"临时身份证", "5":"驾照", "6":"行驶证", "7":"军官证", "9":"中华人民共和国往来港澳通行证(护照幅面)", "10":"台湾居民往来大陆通行证(护照幅面)", "11":"大陆居民往来台湾通行证(护照幅面)", "12":"签证(护照幅面)", "13":"护照(护照幅面)", "14":"港澳居民来往内地通行证正面(卡幅面)", "15":"港澳居民来往内地通行证背面(卡幅面)", "16":"户口本", "17":"银行卡", "19":"车牌", "20":"名片", "22":"卡式港澳台通行证", "25":"新版台湾居民往来大陆通行证正面", "26":"新版台湾居民往来大陆通行证背面", "28":"中国驾驶证副页", "101":"二代身份证正面背面自动分类", "1000":"居住证", "1001":"香港永久性居民身份证", "1002":"登机牌(拍照设备目前不支持登机牌的识别)", "1003":"边民证(A)(照片页)", "1004":"边民证(B)(个人信息页)", "1005":"澳门身份证", "1006":"领取凭证(AVA6支持)", "1007":"律师证(A)(信息页", "1008":"律师证(B) (照片页)", "1030":"全民健康保险卡", "1031":"台湾身份证正面", "1032":"台湾身份证背面", "2007":"VIN码", "2008":"营业执照" , "10000":普通照片(不进行识别) } ``` [安全规范](https://www.kancloud.cn/zzkpay/jyzzpay/1029442) [应答码说明](https://www.kancloud.cn/zzkpay/jyzzpay/1029159)