Commit 56e45afb cgx

优化配置接口

1 个父辈 8874eeb5
......@@ -4,4 +4,4 @@
// 主机地址
SLANT = /
HOST_URL = https:${SLANT}/cbti.mynatapp.cc/sleepiql
HOST_URL = https:${SLANT}/cbti.mynatapp.cc
......@@ -5,4 +5,4 @@
// 主机地址
SLANT = /
HOST_URL = https:${SLANT}/cbti.mynatapp.cc/sleepiql
HOST_URL = https:${SLANT}/cbti.mynatapp.cc
......@@ -4,4 +4,4 @@
// 主机地址
SLANT = /
HOST_URL = https:${SLANT}/www.cbti.cn/sleepiql
HOST_URL = https:${SLANT}/www.cbti.cn
......@@ -42,7 +42,7 @@ NSString * const NetworkUnableError = @"网络不给力,请检查您的网络
view ? [DSProgressHUD showProgressHUDWithInfo:loadingInfo inView:view] : [DSProgressHUD showProgressHUDWithInfo:loadingInfo];
}
NSString *urlString = [ServerURL stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
NSString *urlString = [APIURL stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
DSLog(@"请求链接:%@,业务参数:%@", urlString, params);
......@@ -90,7 +90,7 @@ NSString * const NetworkUnableError = @"网络不给力,请检查您的网络
view ? [DSProgressHUD showProgressHUDWithInfo:loadingInfo inView:view] : [DSProgressHUD showProgressHUDWithInfo:loadingInfo];
}
NSString *urlString = [ServerURL stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
NSString *urlString = [APIURL stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
DSLog(@"请求链接:%@,业务参数:%@", urlString, params);
......
......@@ -9,6 +9,10 @@
// 服务器主机地址
#define ServerURL DSInfoDic[@"HOST_URL"]
// API接口地址
#define APIURL [ServerURL stringByAppendingPathComponent:@"sleepiql"]
// AI睡眠教练接口地址
#define AICoachURL [ServerURL stringByAppendingPathComponent:@"sleep/ai/sleep_aicocah"]
NS_ASSUME_NONNULL_BEGIN
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!