sunpls/sunpls-sbd-mobile/README.md

48 lines
2.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# gfd-mobile
> A Vue.js project
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
```
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
#腾讯云H5OCR身份证接口
javasunpls-gateway-cash/src/main/java/com/sunfintech/cash/idap/controller/LoginPrepareController.java
接口地址:/sunpls-gateway-cash/login/h5/ocr
vuesunpls\sunpls-sbd-mobile\src\view\loan\apply\Apply_loan.vue idCardPostion
参数:
userId: 用户 ID ,用户的唯一标识
url: 回调地址
ocrFlag非必填默认null参数值为 “1”、null 时,人像面必须识别,国徽面可选识别 参数值为 “2” 时,人像面、国徽面都必须识别
返回值JSON向JSON中redirectUrl属性发送请求重定向到OCR扫描界面.扫描成功后调用回调url并返回参数
code身份证识别结果的返回码0 表示识别成功,其他错误码标识失败
orderNo订单号由合作方上送每次唯一此信息为本次身份证识别上送的信息
signature对 URL 参数 App ID、oderNo 和 SIGN ticket 的签名
#腾讯云H5人脸识别接口
javasunpls-gateway-cash/src/main/java/com/sunfintech/cash/idap/controller/LoginPrepareController.java
接口地址:/sunpls-gateway-cash/login/h5/face
vuesunpls\sunpls-sbd-mobile\src\view\loan\withdrawals\Cash.vue
参数:
userId用户 ID ,用户的唯一标识
idNo身份证号
name姓名
url回调地址
resultType非必填默认null是否显示结果页面参数值为“1”时直接跳转到 url 回调地址null 或其他值跳转提供的结果页面
sourcePhotoStr非必填默认null比对源照片为null时根据身份证号 + 姓名使用权威数据源比对
sourcePhotoType比对源照片类型参数值为1 时是:水纹正脸照。参数值为 2 时是:高清正脸照
返回值JSON向json中的redirectUrl发送请求重定向到H5人脸识别界面。.扫描成功后调用回调url并返回参数
code人脸验证结果的返回码0 表示人脸验证成功,其他错误码标识失败。
orderNo订单号 ,由合作方上送,每次唯一,此信息为本次人脸验证上送的信息
h5faceId本次请求返回的唯一标识此信息为本次人脸验证上送的信息。
signature对 URL 参数 App ID、oderNo 和 SIGN ticket 的签名