Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 1bd10c8c
由
cgx
编写于
2022-04-22 15:08:58 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
完善用户登录相关接口
1 个父辈
d23ba692
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
21 行增加
和
3 行删除
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
DreamSleep/DreamSleep/Network/DSProgressHUD.m
DreamSleep/DreamSleep/Profile/InviteController.h → DreamSleep/DreamSleep/Profile/InviteFriend/InviteController.h
DreamSleep/DreamSleep/Profile/InviteController.m → DreamSleep/DreamSleep/Profile/InviteFriend/InviteController.m
DreamSleep/DreamSleep/Profile/UserLogin/LoginController.m
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
查看文件 @
1bd10c8
...
@@ -476,13 +476,12 @@
...
@@ -476,13 +476,12 @@
D04567AD27F6D0F4009F0A82 /* Profile */ = {
D04567AD27F6D0F4009F0A82 /* Profile */ = {
isa = PBXGroup;
isa = PBXGroup;
children = (
children = (
D0D3826428124E34005BB219 /* Feedback */,
D07A4B2E280EC1F100BA0EC0 /* Me */,
D07A4B2E280EC1F100BA0EC0 /* Me */,
D07A4B2F280EC21B00BA0EC0 /* Account */,
D07A4B2F280EC21B00BA0EC0 /* Account */,
D0CE3D80280A532D00D8B02D /* UserLogin */,
D0CE3D80280A532D00D8B02D /* UserLogin */,
D0D3826428124E34005BB219 /* Feedback */,
D09D0E97280D4EEA008DEDAB /* SystemSet */,
D09D0E97280D4EEA008DEDAB /* SystemSet */,
D09D0E9B280D73B6008DEDAB /* InviteController.h */,
D0D382682812660C005BB219 /* InviteFriend */,
D09D0E9C280D73B6008DEDAB /* InviteController.m */,
);
);
path = Profile;
path = Profile;
sourceTree = "<group>";
sourceTree = "<group>";
...
@@ -750,6 +749,15 @@
...
@@ -750,6 +749,15 @@
path = Feedback;
path = Feedback;
sourceTree = "<group>";
sourceTree = "<group>";
};
};
D0D382682812660C005BB219 /* InviteFriend */ = {
isa = PBXGroup;
children = (
D09D0E9B280D73B6008DEDAB /* InviteController.h */,
D09D0E9C280D73B6008DEDAB /* InviteController.m */,
);
path = InviteFriend;
sourceTree = "<group>";
};
D0E65FF32807A654006562F2 /* HYBUnicodeReadable */ = {
D0E65FF32807A654006562F2 /* HYBUnicodeReadable */ = {
isa = PBXGroup;
isa = PBXGroup;
children = (
children = (
...
...
DreamSleep/DreamSleep/Network/DSProgressHUD.m
查看文件 @
1bd10c8
...
@@ -25,6 +25,7 @@ static MBProgressHUD *hud;
...
@@ -25,6 +25,7 @@ static MBProgressHUD *hud;
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
DSKeyWindow
animated
:
YES
];
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
DSKeyWindow
animated
:
YES
];
hud
.
mode
=
MBProgressHUDModeText
;
hud
.
mode
=
MBProgressHUDModeText
;
hud
.
label
.
text
=
message
;
hud
.
label
.
text
=
message
;
[
self
adjustThemeWithHud
:
hud
];
[
hud
hideAnimated
:
NO
afterDelay
:
1
.
0
];
[
hud
hideAnimated
:
NO
afterDelay
:
1
.
0
];
}
}
...
@@ -32,6 +33,7 @@ static MBProgressHUD *hud;
...
@@ -32,6 +33,7 @@ static MBProgressHUD *hud;
{
{
[
self
dissmissProgressHUD
];
[
self
dissmissProgressHUD
];
hud
=
[
MBProgressHUD
showHUDAddedTo
:
DSKeyWindow
animated
:
YES
];
hud
=
[
MBProgressHUD
showHUDAddedTo
:
DSKeyWindow
animated
:
YES
];
[
self
adjustThemeWithHud
:
hud
];
hud
.
label
.
text
=
NSLocalizedString
(
info
,
@""
);
hud
.
label
.
text
=
NSLocalizedString
(
info
,
@""
);
return
hud
;
return
hud
;
}
}
...
@@ -89,4 +91,10 @@ static MBProgressHUD *hud;
...
@@ -89,4 +91,10 @@ static MBProgressHUD *hud;
[
hud
hideAnimated
:
NO
afterDelay
:
4
.
0
];
[
hud
hideAnimated
:
NO
afterDelay
:
4
.
0
];
}
}
+
(
void
)
adjustThemeWithHud
:
(
MBProgressHUD
*
)
hud
{
hud
.
bezelView
.
style
=
MBProgressHUDBackgroundStyleSolidColor
;
hud
.
bezelView
.
dk_backgroundColorPicker
=
DKColorPickerWithColors
(
DSBlack
,
DSWhite
,
DSWhite
);
hud
.
label
.
dk_textColorPicker
=
DKColorPickerWithColors
(
DSWhite
,
DSBlack
,
DSWhite
);
}
@end
@end
DreamSleep/DreamSleep/Profile/InviteController.h
→
DreamSleep/DreamSleep/Profile/Invite
Friend/Invite
Controller.h
查看文件 @
1bd10c8
文件被删除
DreamSleep/DreamSleep/Profile/InviteController.m
→
DreamSleep/DreamSleep/Profile/Invite
Friend/Invite
Controller.m
查看文件 @
1bd10c8
文件被删除
DreamSleep/DreamSleep/Profile/UserLogin/LoginController.m
查看文件 @
1bd10c8
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
// 发送微信登录请求
// 发送微信登录请求
[
UserRequestModel
wxLoginWithCode
:
code
completion
:
^
(
UserRequestModel
*
_Nonnull
requestModel
)
{
[
UserRequestModel
wxLoginWithCode
:
code
completion
:
^
(
UserRequestModel
*
_Nonnull
requestModel
)
{
if
(
requestModel
.
resCode
==
DSResCodeSuccess
)
{
if
(
requestModel
.
resCode
==
DSResCodeSuccess
)
{
[
DSProgressHUD
showToast
:
@"登录成功"
];
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
}
else
{
}
else
{
[
DSProgressHUD
showToast
:
requestModel
.
errorInfo
];
[
DSProgressHUD
showToast
:
requestModel
.
errorInfo
];
...
@@ -121,6 +122,7 @@
...
@@ -121,6 +122,7 @@
// 发送苹果登录请求
// 发送苹果登录请求
[
UserRequestModel
appleLoginWithUser
:
userID
identityToken
:
identityToken
authorizationCode
:
authorizationCode
completion
:^
(
UserRequestModel
*
_Nonnull
requestModel
)
{
[
UserRequestModel
appleLoginWithUser
:
userID
identityToken
:
identityToken
authorizationCode
:
authorizationCode
completion
:^
(
UserRequestModel
*
_Nonnull
requestModel
)
{
if
(
requestModel
.
resCode
==
DSResCodeSuccess
)
{
if
(
requestModel
.
resCode
==
DSResCodeSuccess
)
{
[
DSProgressHUD
showToast
:
@"登录成功"
];
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
}
else
{
}
else
{
[
DSProgressHUD
showToast
:
requestModel
.
errorInfo
];
[
DSProgressHUD
showToast
:
requestModel
.
errorInfo
];
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论