Browse Source

needDrunkJudgment

liuzhenxing1118 2 months ago
parent
commit
e84cf18603

+ 2 - 2
ChineseMedicine/ChineseMedicineSDK/Controller/BaseViewController.m

@@ -75,7 +75,7 @@
         [self showVipInfoAlert];
     } else {
         DetectionViewController *controller = [SK_STORYBOARD instantiateViewControllerWithIdentifier:@"DetectionVC"];
-        controller.isDrank = NO;
+        controller.needDrunkJudgment = @"0";
         [self.navigationController pushViewController:controller animated:YES];
     }
 }
@@ -91,7 +91,7 @@
         [self showVipInfoAlert];
     } else {
         DetectionViewController *controller = [SK_STORYBOARD instantiateViewControllerWithIdentifier:@"DetectionVC"];
-        controller.isDrank = YES;
+        controller.needDrunkJudgment = @"1";
         [self.navigationController pushViewController:controller animated:YES];
     }
 }

+ 1 - 1
ChineseMedicine/ChineseMedicineSDK/Controller/DetectionViewController.h

@@ -11,7 +11,7 @@
 NS_ASSUME_NONNULL_BEGIN
 
 @interface DetectionViewController : BaseViewController
-@property(nonatomic, assign) NSInteger isDrank;
+@property(nonatomic, copy) NSString* needDrunkJudgment;
 @end
 
 NS_ASSUME_NONNULL_END

+ 1 - 1
ChineseMedicine/ChineseMedicineSDK/Controller/DetectionViewController.m

@@ -291,7 +291,7 @@
         @"posture" : @(2), //默认2 2:坐姿 3:站姿 4:躺姿
         @"spo" : _mSpoValue > -1 ? @(_mSpoValue) : @([TestDataManager getSpo]),
         @"data" : datas,
-        @"isdrank" : @(self.isDrank),
+        @"needDrunkJudgment" : self.needDrunkJudgment,
     };
     
     [MBProgressHUD showHUDAddedTo:self.view animated:YES];