May 19, 2021 WeChat Mini Program Development Document
Base library 1.5.0 starts to support, and low versions need to be compatible
Get this machine-supported SOTER biocertification method
Object parameter description:
Parameters | Type | Required | Description |
---|---|---|---|
success | Function | Whether | The interface calls a successful callback function |
fail | Function | Whether | The interface calls the failed callback function |
complete | Function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Success returns a description of the parameters:
The name of the argument | Type | Description |
---|---|---|
supportMode | StringArray | The device supports biometric methods that can be identified by SOTER |
errMsg | String | The result of the interface call |
SupportMode valid value:
Value | Description |
---|---|
fingerPrint | Fingerprint identification |
facial | Face recognition (not supported at this time) |
speech | Sound pattern recognition (not supported at this time) |
Example code:
wx.checkIsSupportSoterAuthentication({
success(res) {
// res.supportMode = [] 不具备任何被SOTER支持的生物识别方式
// res.supportMode = ['fingerPrint'] 只支持指纹识别
// res.supportMode = ['fingerPrint', 'facial'] 支持指纹识别和人脸识别
}
})