feat:饭卡激活
This commit is contained in:
1 parent
72443f7abf
commit
9a98ac8e1c
20 files changed
+665
-154
No files matched your search
@@ -122,12 +122,6 @@ class SyncFaceTool {
|
||||
add.path = filePath;
|
||||
await faceDao.edit(add);
|
||||
}
|
||||
// 重新生成人脸模型
|
||||
await AppFaceTool.removeFace(sampleId: add.sampleId);
|
||||
await AppFaceTool.faceRegister(
|
||||
userId: add.userId.toString(),
|
||||
forceRegister: true,
|
||||
);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
@@ -162,12 +156,6 @@ class SyncFaceTool {
|
||||
edit.path = filePath;
|
||||
}
|
||||
await faceDao.edit(edit);
|
||||
// 重新生成人脸模型
|
||||
await AppFaceTool.removeFace(sampleId: edit.sampleId);
|
||||
await AppFaceTool.faceRegister(
|
||||
userId: edit.userId.toString(),
|
||||
forceRegister: true,
|
||||
);
|
||||
}
|
||||
if (data.length >= size) return true;
|
||||
} catch (e, stack) {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import 'package:common_utils/common_utils.dart';
|
||||
import 'package:flutter_easyloading/flutter_easyloading.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import 'package:pj_supermarket_cloud/common/index.dart';
|
||||
@@ -10,13 +9,8 @@ abstract class SyncProductTool {
|
||||
static Future<void> updateDatabase() async {
|
||||
final isNetwork = AppNetworkTool.isAutoNetwork();
|
||||
if (!isNetwork) return;
|
||||
EasyLoading.show(
|
||||
status: '初始化资源...',
|
||||
maskType: EasyLoadingMaskType.black,
|
||||
);
|
||||
await syncClassify();
|
||||
await syncProduct();
|
||||
EasyLoading.dismiss();
|
||||
}
|
||||
|
||||
/// 同步商品分类
|
||||
@@ -26,7 +20,7 @@ abstract class SyncProductTool {
|
||||
try {
|
||||
List<ServiceClassify>? apiList;
|
||||
if (sysType == SysType.CANTEEN) {
|
||||
apiList = await ProductApi.cookbookClassify(null);
|
||||
apiList = await ProductApi.canteenClassify(null);
|
||||
} else if (sysType == SysType.SUPERMARKET) {
|
||||
apiList = await ProductApi.supermarketClassify(null);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user