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
0224dd98
authored
Apr 07, 2026
by
ludi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复一些高频bug
parent
366330a0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
8 deletions
FuSiLive/AppDelegate.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/AudienceListView/ContributeList/Model/FUSContributeListModel.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/UserGuideTipsView/FUSUserGuideTipsHelper.swift
FuSiLive/AppDelegate.m
View file @
0224dd98
...
...
@@ -380,11 +380,18 @@ typedef NS_ENUM(NSInteger, FFOutsideJumpAPPType) {
// 准备上报的材料
NSMutableDictionary
*
reqDataJSON
=
[[
NSMutableDictionary
alloc
]
initWithDictionary
:[
transmissionContent
copy
]];
reqDataJSON
[
@"data"
][
@"title"
]
=
notificontent
.
title
?:
@""
;
if
([
reqDataJSON
[
@"data"
][
@"text"
]
stringValue
].
length
<=
0
)
{
reqDataJSON
[
@"data"
][
@"text"
]
=
notificontent
.
body
;
id
dataValue
=
reqDataJSON
[
@"data"
];
NSMutableDictionary
*
dataDict
=
nil
;
if
(
dataValue
!=
nil
&&
[
dataValue
isKindOfClass
:[
NSDictionary
class
]])
{
dataDict
=
[[
NSMutableDictionary
alloc
]
initWithDictionary
:(
NSDictionary
*
)
dataValue
];
}
else
{
dataDict
=
[[
NSMutableDictionary
alloc
]
init
];
}
reqDataJSON
[
@"data"
]
=
dataDict
;
dataDict
[
@"title"
]
=
notificontent
.
title
?:
@""
;
dataDict
[
@"text"
]
=
notificontent
.
body
?:
@""
;
if
(
isChatNotification
==
NO
)
{
// 个推打开的,增加一个media
...
...
@@ -393,7 +400,9 @@ typedef NS_ENUM(NSInteger, FFOutsideJumpAPPType) {
if
(
grinfo
!=
nil
&&
[
grinfo
isKindOfClass
:[
NSArray
class
]]
&&
[
grinfo
count
]
>
0
)
{
NSDictionary
*
grinfoFirst
=
[
grinfo
firstObject
];
NSString
*
grinfoUrl
=
[
grinfoFirst
[
@"url"
]
stringValue
];
reqDataJSON
[
@"data"
][
@"media"
]
=
grinfoUrl
;
if
(
grinfoUrl
.
length
>
0
)
{
dataDict
[
@"media"
]
=
grinfoUrl
;
}
}
}
// 2. 转换为 JSON Data
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/AudienceListView/ContributeList/Model/FUSContributeListModel.m
View file @
0224dd98
...
...
@@ -35,8 +35,9 @@
-
(
void
)
fus_loadDataSucceed
:(
void
(
^
)(
FUSContributeListModel
*
listModel
,
NSArray
*
ranklist
))
succeed
failedHandle
:(
void
(
^
)(
NSString
*
msg
,
NSInteger
code
))
failedHandler
{
NSString
*
roomId
=
FUSLiveHelper
.
shareInstance
.
roomInfoModel
.
roomId
?:
@""
;
NSDictionary
*
params
=
@{
@"roomId"
:
FUSLiveHelper
.
shareInstance
.
roomInfoModel
.
roomId
,
@"roomId"
:
roomId
,
@"type"
:
@
(
self
.
type
),
@"page"
:
@
(
self
.
page
)
};
...
...
@@ -44,10 +45,15 @@
self
.
page
=
[
dataDict
[
@"page"
]
integerValue
];
NSMutableArray
*
rankList
=
[
NSMutableArray
array
];
for
(
NSDictionary
*
user
in
dataDict
[
@"ranklist"
])
{
NSArray
*
ranklistArray
=
[
dataDict
[
@"ranklist"
]
isKindOfClass
:
NSArray
.
class
]
?
dataDict
[
@"ranklist"
]
:
@[];
for
(
NSDictionary
*
user
in
ranklistArray
)
{
if
([
user
isKindOfClass
:
NSDictionary
.
class
])
{
FUSContributeModel
*
model
=
[
FUSContributeModel
fus_modelWithDict
:
user
];
if
(
model
)
{
[
rankList
addObject
:
model
];
}
}
}
if
(
self
.
page
==
1
)
{
[
self
.
ranklist
removeAllObjects
];
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/UserGuideTipsView/FUSUserGuideTipsHelper.swift
View file @
0224dd98
...
...
@@ -193,7 +193,7 @@ import RxCocoa
// 或者数据等于0之外的,都是true
if
type
==
.
chatScreenButton
{
// 公屏按钮有次数
let
speechGuidance
=
FUSCacheDataShare
.
shareStore
()
.
settingInitDataModel
.
fus_speechGuidance
if
let
speechGuidance
=
FUSCacheDataShare
.
shareStore
()
.
settingInitDataModel
?
.
fus_speechGuidance
{
if
speechGuidance
!=
-
1
{
let
showTime
=
fus_getShowTimes
(
type
:
type
)
if
showTime
>=
speechGuidance
{
...
...
@@ -201,6 +201,10 @@ import RxCocoa
}
}
}
else
{
return
false
}
}
return
true
}
...
...
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