nfc

NFC

设备限制: Android

参数 params

属性 类型 含义 默认 必须 APP版本
type number nfc使用类型, 0:nfc验证 | 1:nfc读取并返回数据 0

返回 Promise<response>

属性 类型 含义 APP版本
code string 200:成功 | 404:失败
msg string 响应信息
data string 响应数据, 如果调用读取数据功能 返回具体数据

示例

import { nfc } from '@suplink/jssdk';

nfc({ type: 0 }).then((res) => console.log(res))