feat:拉取人脸v1、v2版本

This commit is contained in:
dzc committed 2026-04-17 14:55:42 +08:00
1 parent b916d6ca85
commit 561e55b59f
3 files changed
+17 -3

No files matched your search

+14
View File
@@ -57,6 +57,20 @@ abstract class UserApi {
.toList();
}
/// 获取人脸v2
static Future<List<ServiceAsyncFace>?> getFaceListV2(
dynamic formData,
) async {
final res = await HttpManage().dio.get(
"/admin/user-face/ad/v2/find-face",
queryParameters: formData,
);
if (res.data == null) return null;
return res.data
?.map<ServiceAsyncFace>((e) => ServiceAsyncFace.fromJson(e))
.toList();
}
/// 获取租户列表
static Future<List<ServiceTenant>?> getTenantList() async {
final res = await HttpManage().dio.get("/admin/tenant/list");
+1 -1
View File
@@ -71,7 +71,7 @@ class SyncFaceTool {
if (isGlobalFace != null && isGlobalFace) pa["merchantDeptId"] = null;
logger.i("|$_tag|同步人脸api参数:|$pa|");
try {
final data = await UserApi.getFaceList(pa);
final data = await UserApi.getFaceListV2(pa);
if (data == null) throw Error();
if (ObjectUtil.isEmptyList(data)) {
if (ObjectUtil.isEmpty(userId)) return false;
+2 -2
View File
@@ -10,9 +10,9 @@ class Constants {
static const pwdEncKey = 'pigxpigxpigxpigx';
/// 服务 url 线上
// static const apiUrl = 'https://stgl.pj.gov.cn/api';
static const apiUrl = 'https://stgl.pj.gov.cn/api';
static const apiUrl = 'https://dzc-test-1.fy.takin.cc';
// static const apiUrl = 'https://dzc-test-1.fy.takin.cc';
/// 静态资源 url
static const ossUrl = apiUrl;