Ver código fonte

Merge branch 'master' of http://git.ius.plus/Project-Vital/VitalApp

warr.qian 1 ano atrás
pai
commit
ad6059d177
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      lib/pages/medical/controller.dart

+ 5 - 0
lib/pages/medical/controller.dart

@@ -134,6 +134,11 @@ class MedicalController extends FControllerBase with BluetoothAndLocationMixin {
   }
 
   Future<bool?> saveCachedRecord() async {
+    if (patientCode.isEmpty) {
+      logger.i(
+          'MedicalController saveCachedRecord fail,patientCode:$patientCode');
+      return false;
+    }
     Store.resident.handleSaveMedicalData(jsonEncode(diagnosisDataValue));
     TextStorage cachedRecord = TextStorage(
       fileName: 'JKJC',