更新记录
1.0.0(2025-02-25)
平台兼容性
App |
快应用 |
微信小程序 |
支付宝小程序 |
百度小程序 |
字节小程序 |
QQ小程序 |
HBuilderX 4.52,Android:4.4,iOS:不确定,HarmonyNext:不确定 |
× |
× |
× |
× |
× |
× |
钉钉小程序 |
快手小程序 |
飞书小程序 |
京东小程序 |
鸿蒙元服务 |
× |
× |
× |
× |
× |
H5-Safari |
Android Browser |
微信浏览器(Android) |
QQ浏览器(Android) |
Chrome |
IE |
Edge |
Firefox |
PC-Safari |
× |
× |
× |
× |
× |
× |
× |
× |
× |
操作步骤
- 1.根目录添加如下
AndroidManifest.xml
文件
- 2.将里面的所有
uni.UNI05569ED
改为你的真实包名
- 3.引入在你会被编译的
uvue
或uts
文件内
import {xFacialcorebodyS} from '@/uni_modules/x-facialcorebody-s'
- 4.然后打包自定义基座
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
package="uni.UNI05569ED">
<application android:supportsRtl="true" android:allowBackup="false">
<activity
android:name="uni.UNI05569ED.FaceVerifyDemoActivity"
android:configChanges="orientation"
android:exported="true"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:exported="true" android:name="uni.UNI05569ED.SettingActivity"></activity>
<activity android:exported="true" android:name="uni.UNI05569ED.FaceResultActivity"></activity>
</application>
</manifest>
暴露的interface
export type xFacialcorebodySuccess = {
code: number
msg: string
data?: any
}
export type xFacialcorebodyError = {
errCode: number
}
export type xFacialcorebodyOptions = {
faceId?: string
agreementNo?: string
openApiAppId?: string
openApiAppVersion?: string
openApiNonce?: string
openApiUserId?: string
openApiSign?: string
verifyMode?: number
keyLicence?: string
success?: (res: xFacialcorebodySuccess) => void
fail?: (res: xFacialcorebodyError) => void
}