getUnlockGuide(type: "finger" | "face" | "password" | "card" | "fingerVein" | "hand" | "eye")

版本要求:
@ray-js/lock-sdk≥1.2.0

描述

获取指定开锁方式类型的引导图或视频

参数

参数类型必填说明
type"finger" | "face" | "password" | "card" | "fingerVein" | "hand" | "eye"是开锁方式类型

返回值

类型:Promise<UnlockGuide>
引导数据或 null
UnlockGuide
属性类型说明
videoUrlstring引导视频地址
picUrlstring引导图地址
expireTimenumber资源过期时间

合法值

type
值说明最低版本
finger--
face--
password--
card--
fingerVein--
hand--
eye--

示例代码

import { getUnlockGuide } from '@ray-js/lock-sdk';
const guide = await getUnlockGuide('finger');