Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 56e45afb
由
cgx
编写于
2022-05-23 11:01:10 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
优化配置接口
1 个父辈
8874eeb5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
9 行增加
和
5 行删除
DreamSleep/DreamSleep/Basement/DSConfig/Beta.xcconfig
DreamSleep/DreamSleep/Basement/DSConfig/Debug.xcconfig
DreamSleep/DreamSleep/Basement/DSConfig/Release.xcconfig
DreamSleep/DreamSleep/Basement/Network/DSNetworkTool.m
DreamSleep/DreamSleep/Basement/Utils/ServerAPIUtil.h
DreamSleep/DreamSleep/Basement/DSConfig/Beta.xcconfig
查看文件 @
56e45af
...
@@ -4,4 +4,4 @@
...
@@ -4,4 +4,4 @@
// 主机地址
// 主机地址
SLANT = /
SLANT = /
HOST_URL = https:${SLANT}/cbti.mynatapp.cc
/sleepiql
HOST_URL = https:${SLANT}/cbti.mynatapp.cc
DreamSleep/DreamSleep/Basement/DSConfig/Debug.xcconfig
查看文件 @
56e45af
...
@@ -5,4 +5,4 @@
...
@@ -5,4 +5,4 @@
// 主机地址
// 主机地址
SLANT = /
SLANT = /
HOST_URL = https:${SLANT}/cbti.mynatapp.cc
/sleepiql
HOST_URL = https:${SLANT}/cbti.mynatapp.cc
DreamSleep/DreamSleep/Basement/DSConfig/Release.xcconfig
查看文件 @
56e45af
...
@@ -4,4 +4,4 @@
...
@@ -4,4 +4,4 @@
// 主机地址
// 主机地址
SLANT = /
SLANT = /
HOST_URL = https:${SLANT}/www.cbti.cn
/sleepiql
HOST_URL = https:${SLANT}/www.cbti.cn
DreamSleep/DreamSleep/Basement/Network/DSNetworkTool.m
查看文件 @
56e45af
...
@@ -42,7 +42,7 @@ NSString * const NetworkUnableError = @"网络不给力,请检查您的网络
...
@@ -42,7 +42,7 @@ NSString * const NetworkUnableError = @"网络不给力,请检查您的网络
view
?
[
DSProgressHUD
showProgressHUDWithInfo
:
loadingInfo
inView
:
view
]
:
[
DSProgressHUD
showProgressHUDWithInfo
:
loadingInfo
];
view
?
[
DSProgressHUD
showProgressHUDWithInfo
:
loadingInfo
inView
:
view
]
:
[
DSProgressHUD
showProgressHUDWithInfo
:
loadingInfo
];
}
}
NSString
*
urlString
=
[
Server
URL
stringByAddingPercentEncodingWithAllowedCharacters
:[
NSCharacterSet
URLQueryAllowedCharacterSet
]];
NSString
*
urlString
=
[
API
URL
stringByAddingPercentEncodingWithAllowedCharacters
:[
NSCharacterSet
URLQueryAllowedCharacterSet
]];
DSLog
(
@"请求链接:%@,业务参数:%@"
,
urlString
,
params
);
DSLog
(
@"请求链接:%@,业务参数:%@"
,
urlString
,
params
);
...
@@ -90,7 +90,7 @@ NSString * const NetworkUnableError = @"网络不给力,请检查您的网络
...
@@ -90,7 +90,7 @@ NSString * const NetworkUnableError = @"网络不给力,请检查您的网络
view
?
[
DSProgressHUD
showProgressHUDWithInfo
:
loadingInfo
inView
:
view
]
:
[
DSProgressHUD
showProgressHUDWithInfo
:
loadingInfo
];
view
?
[
DSProgressHUD
showProgressHUDWithInfo
:
loadingInfo
inView
:
view
]
:
[
DSProgressHUD
showProgressHUDWithInfo
:
loadingInfo
];
}
}
NSString
*
urlString
=
[
Server
URL
stringByAddingPercentEncodingWithAllowedCharacters
:[
NSCharacterSet
URLQueryAllowedCharacterSet
]];
NSString
*
urlString
=
[
API
URL
stringByAddingPercentEncodingWithAllowedCharacters
:[
NSCharacterSet
URLQueryAllowedCharacterSet
]];
DSLog
(
@"请求链接:%@,业务参数:%@"
,
urlString
,
params
);
DSLog
(
@"请求链接:%@,业务参数:%@"
,
urlString
,
params
);
...
...
DreamSleep/DreamSleep/Basement/Utils/ServerAPIUtil.h
查看文件 @
56e45af
...
@@ -9,6 +9,10 @@
...
@@ -9,6 +9,10 @@
// 服务器主机地址
// 服务器主机地址
#define ServerURL DSInfoDic[@"HOST_URL"]
#define ServerURL DSInfoDic[@"HOST_URL"]
// API接口地址
#define APIURL [ServerURL stringByAppendingPathComponent:@"sleepiql"]
// AI睡眠教练接口地址
#define AICoachURL [ServerURL stringByAppendingPathComponent:@"sleep/ai/sleep_aicocah"]
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论