Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 75598e95
由
cgx
编写于
2022-06-24 18:08:41 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
V 1.1.0 build 2
1 个父辈
25044acb
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
4 行增加
和
5 行删除
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
DreamSleep/DreamSleep/Class/Start/AppUpdate/VersionRequestModel.m
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
查看文件 @
75598e9
...
@@ -2288,7 +2288,7 @@
...
@@ -2288,7 +2288,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepDebug.entitlements;
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION =
1
;
CURRENT_PROJECT_VERSION =
2
;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
ENABLE_BITCODE = NO;
ENABLE_BITCODE = NO;
...
@@ -2364,7 +2364,7 @@
...
@@ -2364,7 +2364,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/DreamSleep.entitlements;
CODE_SIGN_ENTITLEMENTS = DreamSleep/DreamSleep.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION =
1
;
CURRENT_PROJECT_VERSION =
2
;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
ENABLE_BITCODE = NO;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
FRAMEWORK_SEARCH_PATHS = (
...
@@ -2500,7 +2500,7 @@
...
@@ -2500,7 +2500,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepBeta.entitlements;
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepBeta.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION =
1
;
CURRENT_PROJECT_VERSION =
2
;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
ENABLE_BITCODE = NO;
ENABLE_BITCODE = NO;
...
...
DreamSleep/DreamSleep/Class/Start/AppUpdate/VersionRequestModel.m
查看文件 @
75598e9
...
@@ -15,13 +15,12 @@
...
@@ -15,13 +15,12 @@
NSString
*
argStr
=
[
NSString
stringWithFormat
:
@"query{%@(sys_code:
\"
IOS
\"
,version_code:
\"
stable
\"
,version_num:
\"
%@
\"
)}"
,
api
,
DSAppVersion
];
NSString
*
argStr
=
[
NSString
stringWithFormat
:
@"query{%@(sys_code:
\"
IOS
\"
,version_code:
\"
stable
\"
,version_num:
\"
%@
\"
)}"
,
api
,
DSAppVersion
];
return
[
self
httpPostBodyRequestWithAPI
:
api
params
:@{
@"query"
:
argStr
}
view
:
nil
hasNetActivity
:
YES
loadingInfo
:
nil
hasFailInfo
:
YES
success
:^
(
NSDictionary
*
_Nonnull
apiDic
)
{
return
[
self
httpPostBodyRequestWithAPI
:
api
params
:@{
@"query"
:
argStr
}
view
:
nil
hasNetActivity
:
YES
loadingInfo
:
nil
hasFailInfo
:
YES
success
:^
(
NSDictionary
*
_Nonnull
apiDic
)
{
DSLog
(
@"App版本升级接口apiDic:%@"
,
apiDic
);
DSLog
(
@"App版本升级接口apiDic:%@"
,
apiDic
);
requestModel
.
resCode
=
DSResCodeSuccess
;
NSDictionary
*
resultDic
=
apiDic
[
@"result"
];
NSDictionary
*
resultDic
=
apiDic
[
@"result"
];
if
(
resultDic
&&
[
resultDic
isKindOfClass
:[
NSDictionary
class
]])
{
if
(
resultDic
&&
[
resultDic
isKindOfClass
:[
NSDictionary
class
]])
{
requestModel
.
resCode
=
DSResCodeSuccess
;
requestModel
.
update_Way
=
[
resultDic
[
@"Update_Way"
]
intValue
];
requestModel
.
update_Way
=
[
resultDic
[
@"Update_Way"
]
intValue
];
requestModel
.
version_Num
=
resultDic
[
@"Version_Num"
];
requestModel
.
version_Num
=
resultDic
[
@"Version_Num"
];
requestModel
.
version_Content
=
resultDic
[
@"Version_Content"
];
requestModel
.
version_Content
=
resultDic
[
@"Version_Content"
];
requestModel
.
resCode
=
DSResCodeSuccess
;
}
else
{
}
else
{
// APP已经是最新版本了
// APP已经是最新版本了
requestModel
.
resCode
=
DSResCodeNoUpdate
;
requestModel
.
resCode
=
DSResCodeNoUpdate
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论