Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
account_center_plugin_temp
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
account_center_plugin_temp
Commits
54678033
提交
54678033
authored
2月 25, 2026
作者:
史晓晨
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调试人脸识别
上级
20637ec4
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
64 行增加
和
60 行删除
+64
-60
pubspec.lock
example/pubspec.lock
+34
-25
identification_util.dart
...page/account_center/account_info/identification_util.dart
+25
-25
pubspec.yaml
pubspec.yaml
+5
-10
没有找到文件。
example/pubspec.lock
浏览文件 @
54678033
...
@@ -8,6 +8,15 @@ packages:
...
@@ -8,6 +8,15 @@ packages:
relative: true
relative: true
source: path
source: path
version: "3.3.7"
version: "3.3.7"
aliyun_face_plugin:
dependency: transitive
description:
path: "."
ref: "v1.0.4_f3.38"
resolved-ref: "0bf39d2636d0b246b00a51382ece258989c0d152"
url: "https://dev:devfortesting@t.clxkj.cn/openSourceLibrary/aliyun_face_plugin.git"
source: git
version: "0.0.1"
args:
args:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -164,10 +173,10 @@ packages:
...
@@ -164,10 +173,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: dbus
name: dbus
sha256:
"79e0c23480ff85dc68de79e2cd6334add97e48f7f4865d17686dd6ea81a47e8c"
sha256:
d0c98dcd4f5169878b6cf8f6e0a52403a9dff371a3e2f019697accbf6f44a270
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "0.7.1
1
"
version: "0.7.1
2
"
decimal:
decimal:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -236,10 +245,10 @@ packages:
...
@@ -236,10 +245,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: ffi
name: ffi
sha256:
d07d37192dbf97461359c1518788f203b0c9102cfd2c35a716b823741219542c
sha256:
"6d7fd89431262d8f3125e81b50d3847a091d846eafcd4fdb88dd06f36d705a45"
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "2.
1.5
"
version: "2.
2.0
"
file:
file:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -322,7 +331,7 @@ packages:
...
@@ -322,7 +331,7 @@ packages:
description:
description:
path: "."
path: "."
ref: "v1.0.3_f3.38"
ref: "v1.0.3_f3.38"
resolved-ref:
a08b98f61d53a7f3b6100b95e849401382e45b5a
resolved-ref:
"32a21ea8e0ab7abbb298eca791bceeed9a919fa3"
url: "https://t.clxkj.cn/openSourceLibrary/flutter_clx_base.git"
url: "https://t.clxkj.cn/openSourceLibrary/flutter_clx_base.git"
source: git
source: git
version: "1.0.7"
version: "1.0.7"
...
@@ -449,10 +458,10 @@ packages:
...
@@ -449,10 +458,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: hooks
name: hooks
sha256: "
5d309c86e7ce34cd8e37aa71cb30cb652d3829b900ab145e4d9da564b31d59f7
"
sha256: "
7a08a0d684cb3b8fb604b78455d5d352f502b68079f7b80b831c62220ab0a4f6
"
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.0.
0
"
version: "1.0.
1
"
html:
html:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -489,10 +498,10 @@ packages:
...
@@ -489,10 +498,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: image_picker_android
name: image_picker_android
sha256:
"518a16108529fc18657a3e6dde4a043dc465d16596d20ab2abd49a4cac2e703d"
sha256:
eda9b91b7e266d9041084a42d605a74937d996b87083395c5e47835916a86156
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "0.8.13+1
3
"
version: "0.8.13+1
4
"
image_picker_for_web:
image_picker_for_web:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -657,10 +666,10 @@ packages:
...
@@ -657,10 +666,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: objective_c
name: objective_c
sha256: "
983c7fa1501f6dcc0cb7af4e42072e9993cb28d73604d25ebf4dab08165d997e
"
sha256: "
100a1c87616ab6ed41ec263b083c0ef3261ee6cd1dc3b0f35f8ddfa4f996fe52
"
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "9.
2.5
"
version: "9.
3.0
"
octo_image:
octo_image:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -825,10 +834,10 @@ packages:
...
@@ -825,10 +834,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: petitparser
name: petitparser
sha256: "
1a97266a94f7350d30ae522c0af07890c70b8e62c71e8e3920d1db4d23c057d1
"
sha256: "
91bd59303e9f769f108f8df05e371341b15d59e995e6806aefab827b58336675
"
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "7.0.
1
"
version: "7.0.
2
"
platform:
platform:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -942,10 +951,10 @@ packages:
...
@@ -942,10 +951,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: source_span
name: source_span
sha256: "
254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c
"
sha256: "
56a02f1f4cd1a2d96303c0144c93bd6d909eea6bee6bf5a0e0b685edbd4c47ab
"
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.10.
1
"
version: "1.10.
2
"
sp_util:
sp_util:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -1078,10 +1087,10 @@ packages:
...
@@ -1078,10 +1087,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: url_launcher_ios
name: url_launcher_ios
sha256:
cfde38aa257dae62ffe79c87fab20165dfdf6988c1d31b58ebf59b9106062aad
sha256:
"580fe5dfb51671ae38191d316e027f6b76272b026370708c2d898799750a02b0"
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "6.
3.6
"
version: "6.
4.1
"
url_launcher_linux:
url_launcher_linux:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -1126,10 +1135,10 @@ packages:
...
@@ -1126,10 +1135,10 @@ packages:
dependency: "direct main"
dependency: "direct main"
description:
description:
name: uuid
name: uuid
sha256:
a11b666489b1954e01d992f3d601b1804a33937b5a8fe677bd26b8a9f96f96e8
sha256:
"1fef9e8e11e2991bb773070d4656b7bd5d850967a2456cfc83cf47925ba79489"
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "4.5.
2
"
version: "4.5.
3
"
vector_graphics:
vector_graphics:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -1150,10 +1159,10 @@ packages:
...
@@ -1150,10 +1159,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: vector_graphics_compiler
name: vector_graphics_compiler
sha256: "
201e876b5d52753626af64b6359cd13ac6011b80728731428fd34bc840f71c9b
"
sha256: "
5a88dd14c0954a5398af544651c7fb51b457a2a556949bfb25369b210ef73a74
"
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.
1.2
0"
version: "1.
2.
0"
vector_math:
vector_math:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -1190,10 +1199,10 @@ packages:
...
@@ -1190,10 +1199,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: webview_flutter_android
name: webview_flutter_android
sha256:
eeeb3fcd5f0ff9f8446c9f4bbc18a99b809e40297528a3395597d03aafb9f510
sha256:
"2a03df01df2fd30b075d1e7f24c28aee593f2e5d5ac4c3c4283c5eda63717b24"
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "4.10.1
1
"
version: "4.10.1
3
"
webview_flutter_platform_interface:
webview_flutter_platform_interface:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -1206,10 +1215,10 @@ packages:
...
@@ -1206,10 +1215,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: webview_flutter_wkwebview
name: webview_flutter_wkwebview
sha256:
e49f378ed066efb13fc36186bbe0bd2425630d4ea0dbc71a18fdd0e4d8ed8ebc
sha256:
"108bd85d0ff20bff1e8b52a040f5c19b6b9fc4a78fdf3160534ff5a11a82e267"
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "3.23.
5
"
version: "3.23.
7
"
win32:
win32:
dependency: transitive
dependency: transitive
description:
description:
...
...
lib/page/account_center/account_info/identification_util.dart
浏览文件 @
54678033
...
@@ -5,8 +5,8 @@ import 'package:account_center/account_center.dart';
...
@@ -5,8 +5,8 @@ import 'package:account_center/account_center.dart';
import
'package:account_center/api/base_model.dart'
;
import
'package:account_center/api/base_model.dart'
;
import
'package:account_center/page/account_center/widget/Identity_doing.dart'
;
import
'package:account_center/page/account_center/widget/Identity_doing.dart'
;
import
'package:account_center/page/account_center/widget/identity_success.dart'
;
import
'package:account_center/page/account_center/widget/identity_success.dart'
;
//
import 'package:aliyun_face_plugin/core/aliyun_face_plugin.dart';
import
'package:aliyun_face_plugin/core/aliyun_face_plugin.dart'
;
//
import 'package:aliyun_face_plugin/utils/face_auth_utils.dart';
import
'package:aliyun_face_plugin/utils/face_auth_utils.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
...
@@ -76,29 +76,29 @@ abstract class IdentificationUtil {
...
@@ -76,29 +76,29 @@ abstract class IdentificationUtil {
}
}
static
Future
<
dynamic
>
startFaceVerify
()
async
{
static
Future
<
dynamic
>
startFaceVerify
()
async
{
//
LoadingUtils.showLoading();
LoadingUtils
.
showLoading
();
//
var mataInfos = await AliyunFacePlugin().getMetaInfos();
var
mataInfos
=
await
AliyunFacePlugin
().
getMetaInfos
();
//
var result = await fetchAsync(Method.post,
var
result
=
await
fetchAsync
(
Method
.
post
,
//
url: '/msl-user/app/user/realName/getUserFaceRealNameInit',
url:
'/msl-user/app/user/realName/getUserFaceRealNameInit'
,
//
params: {
params:
{
//
'metaInfo': mataInfos,
'metaInfo'
:
mataInfos
,
//
'productChannel': Platform.isIOS ? 'ios_app' : 'android_app'
'productChannel'
:
Platform
.
isIOS
?
'ios_app'
:
'android_app'
//
});
});
//
LoadingUtils.dismiss();
LoadingUtils
.
dismiss
();
//
if (result.isError) {
if
(
result
.
isError
)
{
//
return null;
return
null
;
//
}
}
//
var certifyResult = result.data;
var
certifyResult
=
result
.
data
;
//
var certifyId = certifyResult['certifyId'];
var
certifyId
=
certifyResult
[
'certifyId'
];
//
debugPrint('认证结果:$certifyId');
debugPrint
(
'认证结果:
$certifyId
'
);
//
var verifyResult =
var
verifyResult
=
//
await FaceAuthUtils.instance.startVerify(certifyId: certifyId);
await
FaceAuthUtils
.
instance
.
startVerify
(
certifyId:
certifyId
);
//
if (verifyResult == null) return certifyId;
if
(
verifyResult
==
null
)
return
certifyId
;
//
var resultArr = verifyResult.split(',');
var
resultArr
=
verifyResult
.
split
(
','
);
//
if (resultArr.getElement(0) != '1000') {
if
(
resultArr
.
getElement
(
0
)
!=
'1000'
)
{
//
return certifyId;
return
certifyId
;
//
}
}
//
return certifyId;
return
certifyId
;
}
}
static
Future
<
bool
>
startVerifyWeb
(
String
url
)
async
{
static
Future
<
bool
>
startVerifyWeb
(
String
url
)
async
{
...
...
pubspec.yaml
浏览文件 @
54678033
...
@@ -22,26 +22,21 @@ dependencies:
...
@@ -22,26 +22,21 @@ dependencies:
connectivity_plus
:
^7.0.0
connectivity_plus
:
^7.0.0
flutter_pdfview
:
^1.4.4
flutter_pdfview
:
^1.4.4
flutter_oss_aliyun
:
^6.4.2
flutter_oss_aliyun
:
^6.4.2
#
aliyun_face_plugin:
aliyun_face_plugin
:
#
git:
git
:
#
url: https://dev:devfortesting@t.clxkj.cn/openSourceLibrary/aliyun_face_plugin.git
url
:
https://dev:devfortesting@t.clxkj.cn/openSourceLibrary/aliyun_face_plugin.git
#
ref: v1.0.4_f3.38
ref
:
v1.0.4_f3.38
flutter_clx_base
:
flutter_clx_base
:
git
:
git
:
url
:
https://t.clxkj.cn/openSourceLibrary/flutter_clx_base.git
url
:
https://t.clxkj.cn/openSourceLibrary/flutter_clx_base.git
ref
:
v1.0.3_f3.38
ref
:
v1.0.3_f3.38
dependency_overrides
:
dependency_overrides
:
# ffi: 2.0.1
dev_dependencies
:
dev_dependencies
:
flutter_test
:
flutter_test
:
sdk
:
flutter
sdk
:
flutter
flutter_lints
:
^6.0.0
flutter_lints
:
^6.0.0
# flutter_clx_base:
# git:
# url: https://t.clxkj.cn/openSourceLibrary/flutter_clx_base.git
# ref: v1.0.2
flutter
:
flutter
:
plugin
:
plugin
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论