|
@@ -20,41 +20,42 @@
|
|
|
|
|
|
|
|
|
//接口
|
|
|
-#define POST_LOGIN_INFO_URL @"/account/api/v1/entry/login/temporary"
|
|
|
-#define POST_SUBMIT_PULSE_URL @"/healthy/api/v1/submit/report"
|
|
|
-#define POST_QUESTION_URL @"/healthy/api/v1/inquiry/submit/pulse"
|
|
|
-#define POST_REPORT_URL @"/healthy/api/v1/get/report" //通过id,获取报告内容
|
|
|
-#define POST_REPORT_RANGE_URL @"/healthy/api/v1/statis/report" //一段时间内数据
|
|
|
-#define POST_LAEST_DETECTION_URL @"/healthy/api/v1/get/recent/report"
|
|
|
-
|
|
|
-#define POST_VIP_PRICE_URL @"/trade/api/v1/product/support"
|
|
|
-#define POST_VIP_TRIAL_URL @"/trade/api/v1/product/activity"
|
|
|
-#define POST_PAYINFO_URL @"/trade/api/v1/payment/qualification"
|
|
|
-#define POST_PAY_RESULT_URL @"/trade/api/v1/payment/record"
|
|
|
-#define POST_WEBPAY_URL @"/trade/api/v1/alipay/htm/payment"
|
|
|
-#define POST_ALIPAY_URL @"/trade/api/v1/alipay/pay"
|
|
|
-#define POST_WXPAY_URL @"/trade/api/v1/wxpay/pay"
|
|
|
+#define POST_LOGIN_INFO_URL @"/account/api/v1/entry/login/temporary"
|
|
|
+#define POST_SUBMIT_REPORT_URL @"/healthy/api/v1/submit/report"
|
|
|
+#define POST_SUBMIT_REPORT_DRANK_URL @"/healthy/api/v1//submit/drinkReport"
|
|
|
+#define POST_QUESTION_URL @"/healthy/api/v1/inquiry/submit/pulse"
|
|
|
+#define POST_REPORT_URL @"/healthy/api/v1/get/report" //通过id,获取报告内容
|
|
|
+#define POST_REPORT_RANGE_URL @"/healthy/api/v1/statis/report" //一段时间内数据
|
|
|
+#define POST_LAEST_DETECTION_URL @"/healthy/api/v1/get/recent/report"
|
|
|
+
|
|
|
+#define POST_VIP_PRICE_URL @"/trade/api/v1/product/support"
|
|
|
+#define POST_VIP_TRIAL_URL @"/trade/api/v1/product/activity"
|
|
|
+#define POST_PAYINFO_URL @"/trade/api/v1/payment/qualification"
|
|
|
+#define POST_PAY_RESULT_URL @"/trade/api/v1/payment/record"
|
|
|
+#define POST_WEBPAY_URL @"/trade/api/v1/alipay/htm/payment"
|
|
|
+#define POST_ALIPAY_URL @"/trade/api/v1/alipay/pay"
|
|
|
+#define POST_WXPAY_URL @"/trade/api/v1/wxpay/pay"
|
|
|
|
|
|
|
|
|
//key
|
|
|
-#define PAY_WX_APPID @"wxc501f69c23c0a923"
|
|
|
-#define PAY_WX_UNIVERSALLINK @"https://sikey/"
|
|
|
+#define PAY_WX_APPID @"wxc501f69c23c0a923"
|
|
|
+#define PAY_WX_UNIVERSALLINK @"https://sikey/"
|
|
|
|
|
|
-#define KEY_USERID @"userId"
|
|
|
-#define KEY_DATA @"data"
|
|
|
-#define KEY_MESSAGE @"message"
|
|
|
-#define KEY_REPORTID @"reportId"
|
|
|
-#define KEY_QUESTION @"questions"
|
|
|
-#define KEY_HAS_QUESTION @"hasQuestion"
|
|
|
+#define KEY_USERID @"userId"
|
|
|
+#define KEY_DATA @"data"
|
|
|
+#define KEY_MESSAGE @"message"
|
|
|
+#define KEY_REPORTID @"reportId"
|
|
|
+#define KEY_QUESTION @"questions"
|
|
|
+#define KEY_HAS_QUESTION @"hasQuestion"
|
|
|
|
|
|
|
|
|
//检测
|
|
|
-#define PPG_TIME 60
|
|
|
-#define PPG_TIME_OUT PPG_TIME + 5 //延迟10秒,保证检测数据足够
|
|
|
-#define PPG_DATA_COUNT_MAX PPG_TIME * 100 * 8 //检测一分钟大概48000个数据
|
|
|
-#define PPG_PRECENT_MAX 55.0f //ppg检测百分比
|
|
|
-#define SPO_TIME_OUT 90.0f - PPG_PRECENT_MAX //血氧检测时间
|
|
|
-#define LOAD_PAGE_SIZE 20
|
|
|
+#define PPG_TIME 60
|
|
|
+#define PPG_TIME_OUT PPG_TIME + 5 //延迟10秒,保证检测数据足够
|
|
|
+#define PPG_DATA_COUNT_MAX PPG_TIME * 100 * 8 //检测一分钟大概48000个数据
|
|
|
+#define PPG_PRECENT_MAX 55.0f //ppg检测百分比
|
|
|
+#define SPO_TIME_OUT 90.0f - PPG_PRECENT_MAX //血氧检测时间
|
|
|
+#define LOAD_PAGE_SIZE 20
|
|
|
|
|
|
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
|
|
|
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
|