Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pidan
/
FuSiLive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
342e9cd8
authored
Jun 20, 2025
by
pidan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复个推的token无法绑定的问题
parent
19dcca3a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
24 deletions
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Other/FUSLiveHelper.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/Push/LiveStartView/FUSLiveStartSetPasswordView.swift
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Login/Other/FUSRecieveNotificationHelper.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Other/FUSLiveHelper.m
View file @
342e9cd8
...
@@ -1438,7 +1438,7 @@
...
@@ -1438,7 +1438,7 @@
}];
}];
}
else
{
}
else
{
// 其他情况
// 其他情况
[
FUSAlertView
showAlertWithTitle
:
nil
message
:
[
NSString
fus_localString
:
@"网络出错,是否重新进入包房?"
]
cancelButtonTitle
:
nil
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"确定"
],
[
NSString
fus_localString
:
@"退出"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:
msg
cancelButtonTitle
:
nil
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"确定"
],
[
NSString
fus_localString
:
@"退出"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
0
)
{
if
(
buttonIndex
==
0
)
{
[
self
fus_audienceJoinRoomWithRoomId
:
currentRoomId
password
:
password
];
[
self
fus_audienceJoinRoomWithRoomId
:
currentRoomId
password
:
password
];
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/Push/LiveStartView/FUSLiveStartSetPasswordView.swift
View file @
342e9cd8
...
@@ -31,7 +31,7 @@ import RxSwift
...
@@ -31,7 +31,7 @@ import RxSwift
guard
let
showVC
=
UINavigationController
.
fus_top
()
else
{
return
}
guard
let
showVC
=
UINavigationController
.
fus_top
()
else
{
return
}
let
password
=
UserDefaults
.
standard
.
string
(
forKey
:
FUSLiveUDKeys
.
fus_LiveRoomPasswordCacheUDKEY
(
FUSLiveHelper
.
shareInstance
()
.
roomInfoModel
?
.
roomId
??
""
))
??
""
let
password
=
UserDefaults
.
standard
.
string
(
forKey
:
FUSLiveUDKeys
.
fus_LiveRoomPasswordCacheUDKEY
(
FUSLiveHelper
.
shareInstance
()
.
roomInfoModel
?
.
roomId
??
""
))
??
""
let
view
=
FUSLiveStartSetPasswordView
(
frame
:
showVC
.
view
.
bounds
,
isAudience
:
true
,
password
:
password
)
let
view
=
FUSLiveStartSetPasswordView
(
frame
:
showVC
.
view
.
bounds
,
isAudience
:
true
,
password
:
password
)
view
.
clickWithSucceedHandler
=
{
succeed
,
password
in
view
.
clickWithSucceedHandler
=
{
succeed
,
password
in
clickHandler
(
succeed
,
password
)
clickHandler
(
succeed
,
password
)
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Login/Other/FUSRecieveNotificationHelper.m
View file @
342e9cd8
...
@@ -75,28 +75,28 @@
...
@@ -75,28 +75,28 @@
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
recieveAccountInfoChangedNotification
:
)
name
:
STR
(
USER_ACCOUNT_CHANGE
)
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
recieveAccountInfoChangedNotification
:
)
name
:
STR
(
USER_ACCOUNT_CHANGE
)
object
:
nil
];
// 监听网络状态, 重连Sockt
//
// 监听网络状态, 重连Sockt
[
FUSHttpHelper
fus_monitorNetWorkStatus
:
^
(
AFNetworkReachabilityStatus
status
)
{
//
[FUSHttpHelper fus_monitorNetWorkStatus:^(AFNetworkReachabilityStatus status) {
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
FUSLiveNotificationKeys
.
fus_Networking_Statu_Changed
object
:
@
(
status
)];
//
[[NSNotificationCenter defaultCenter] postNotificationName:FUSLiveNotificationKeys.fus_Networking_Statu_Changed object:@(status)];
if
(
status
>
0
)
{
//
if (status > 0) {
// 重新连接Socket
//
// 重新连接Socket
[
FUSSocketMessageCenter
fus_socketReconnectWithBlock
:
^
(
BOOL
isSuccess
)
{
//
[FUSSocketMessageCenter fus_socketReconnectWithBlock:^(BOOL isSuccess) {
if
(
isSuccess
)
{
//
if (isSuccess) {
FUSLogInfo
(
@"---->重连成功"
);
//
FUSLogInfo(@"---->重连成功");
}
//
}
}];
//
}];
//
// 连接Socket
//
// 连接Socket
if
(
!
[
FUSSocketMessageCenter
isConnected
])
{
//
if (![FUSSocketMessageCenter isConnected]) {
[
FUSSocketMessageCenter
fus_socketReconnectWithBlock
:
^
(
BOOL
isSuccess
)
{
//
[FUSSocketMessageCenter fus_socketReconnectWithBlock:^(BOOL isSuccess) {
if
(
isSuccess
)
{
//
if (isSuccess) {
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
FUSLiveNotificationKeys
.
fus_Baofang_Socket_Reconnected
object
:
nil
];
//
[[NSNotificationCenter defaultCenter] postNotificationName:FUSLiveNotificationKeys.fus_Baofang_Socket_Reconnected object:nil];
}
//
}
}];
//
}];
}
//
}
}
//
}
}];
//
}];
//
}
}
// 获取用户信息
// 获取用户信息
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment