Selaa lähdekoodia

0017732: 【新建档案】人脸识别页面拍照,将自己的人脸对准后,点击拍照,页面重复提示“无法识别面部信息,请确保面部清晰可见”

finlay 1 vuosi sitten
vanhempi
commit
9f3ceb39b1

+ 1 - 0
lib/managers/patient.dart

@@ -97,6 +97,7 @@ class PatientManager implements IPatientManager {
         PageCollection<PatientModelDTO>();
     try {
       request.token = Store.user.token;
+      print(jsonEncode(request.toJson()));
       final result = await rpc.vitalPatient.getPatientPageAsync(request);
       listPatientDto.dataCount = result.dataCount;
       listPatientDto.pageData = [];

+ 2 - 2
lib/pages/facial_recognition/controller_plus.dart

@@ -59,10 +59,10 @@ class FacialRecognitionControllerPlus extends FacialRecognitionController {
       );
 
       final type = result.faceScanErrorType;
-      if (type == FaceScanErrorTypeEnum.Success) {
+      if (type == FaceScanErrorTypeEnum2.Success) {
         doCancelCapture();
         finishFaceDetection(result);
-      } else if (type == FaceScanErrorTypeEnum.NoCreated) {
+      } else if (type == FaceScanErrorTypeEnum2.NoCreated) {
         doCancelCapture();
         await Get.dialog(
           VAlertDialog(