We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a32411 commit 4a6b4a1Copy full SHA for 4a6b4a1
page/API/pages/soter-authentication/soter-authentication.js
@@ -51,18 +51,30 @@ Page({
51
})
52
}
53
54
+ const notSupported = () => {
55
+ wx.showModal({
56
+ title: '错误',
57
+ content: '您的设备不支持指纹识别',
58
+ showCancel: false
59
+ })
60
+ }
61
+
62
wx.checkIsSupportSoterAuthentication({
63
success: (res) => {
64
console.log(res)
65
+ if (
66
+ !res ||
67
+ res.supportMode.length === 0 ||
68
+ res.supportMode.indexOf('fingerPrint') < 0
69
+ ) {
70
+ notSupported()
71
+ return
72
73
checkIsEnrolled()
74
},
75
fail: (err) => {
76
console.error(err)
- wx.showModal({
- title: '错误',
- content: '您的设备不支持指纹识别',
- showCancel: false
- })
77
78
79
80
0 commit comments