feat:离线支持
This commit is contained in:
1 parent
12597ba258
commit
0af163738f
15 files changed
+89
-112
No files matched your search
@@ -67,6 +67,8 @@ abstract class AppFaceTool {
|
||||
|
||||
// 是否激活人脸sdk
|
||||
static Future<bool> isActiveSdk() async {
|
||||
final isNetwork = AppNetworkTool.isAutoNetwork();
|
||||
if (!isNetwork) return true;
|
||||
var faceConfig = await FaceDiscernPlugs.getConfig();
|
||||
if (faceConfig == null || faceConfig.isActive == false) {
|
||||
final sysSetting = await AppSettingTool.getSysSetting();
|
||||
|
||||
Reference in new issue
Block a user