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
565b9f67
authored
Aug 23, 2024
by
pierce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed 提示音不播放的问题
parent
c2de1e10
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
30 deletions
DevelopmentPods/FUSCommon/FUSCommon/Classes/Common/FUSGiftCenter/NormalGift/Model/FUSAnimationRingHelper.m
DevelopmentPods/FUSCommon/FUSCommon/FUSRouter/Routers/UserRouter/FUSUserPublicDefine.h
DevelopmentPods/FUSCommon/FUSCommon/FUSRouter/Routers/UserRouter/FUSUserPublicDefine.m
FuSiLive/AppDelegate.m
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/ZhaiXin/Recommend/View/FUSZhaiXinSettingPopView.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/Activity/FUSHalfWebView.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Setting/Controller/FUSSettingViewController.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Zone/View/DailyCheckIn/View/FUSDailyCheckInView.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Zone/View/DailyCheckIn/View/FUSSingleDailyCheckInView.m
DevelopmentPods/FUSCommon/FUSCommon/Classes/Common/FUSGiftCenter/NormalGift/Model/FUSAnimationRingHelper.m
View file @
565b9f67
...
@@ -78,14 +78,14 @@
...
@@ -78,14 +78,14 @@
//中奖奖音效
//中奖奖音效
BOOL
soundSwitch
=
[
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
FUSUserUDKeys
.
fus_SETTING_SOUND_SWITCH_BOOL
]
boolValue
];
BOOL
soundSwitch
=
[
FUSSoundAndVibrateHelper
systemSoundOpen
];
if
(
soundSwitch
&&
needRing
&&
!
[
NSString
isNull
:
soundName
])
{
if
(
soundSwitch
&&
needRing
&&
!
[
NSString
isNull
:
soundName
])
{
[
FUSSoundAndVibrateHelper
playSoundEffect
:
soundName
bundle
:[
FUSCommonBundle
bundle
]
ofType
:
@"mp3"
];
[
FUSSoundAndVibrateHelper
playSoundEffect
:
soundName
bundle
:[
FUSCommonBundle
bundle
]
ofType
:
@"mp3"
];
}
}
//振动效果
//振动效果
if
(
needVibrate
)
{
if
(
needVibrate
)
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
5
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
5
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
BOOL
vibrateSwitch
=
[
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
FUSUserUDKeys
.
fus_SETTING_VIBRATE_SWITCH_BOOL
]
boolValue
];
BOOL
vibrateSwitch
=
[
FUSSoundAndVibrateHelper
systemVibrateOpen
];
if
(
vibrateSwitch
)
{
if
(
vibrateSwitch
)
{
[
FUSSoundAndVibrateHelper
fus_playSystemVibrate
];
[
FUSSoundAndVibrateHelper
fus_playSystemVibrate
];
}
}
...
...
DevelopmentPods/FUSCommon/FUSCommon/FUSRouter/Routers/UserRouter/FUSUserPublicDefine.h
View file @
565b9f67
...
@@ -42,11 +42,6 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -42,11 +42,6 @@ NS_ASSUME_NONNULL_BEGIN
// 用户是否已认证
// 用户是否已认证
+
(
NSString
*
)
fus_USER_AUTHSTATE
;
+
(
NSString
*
)
fus_USER_AUTHSTATE
;
// 设置中声音开关
+
(
NSString
*
)
fus_SETTING_SOUND_SWITCH_BOOL
;
// 设置中振动开关
+
(
NSString
*
)
fus_SETTING_VIBRATE_SWITCH_BOOL
;
// 设置中启动语音开关
// 设置中启动语音开关
+
(
NSString
*
)
fus_SETTING_LAUNCH_SOUND_SWITCH_BOOL
;
+
(
NSString
*
)
fus_SETTING_LAUNCH_SOUND_SWITCH_BOOL
;
...
...
DevelopmentPods/FUSCommon/FUSCommon/FUSRouter/Routers/UserRouter/FUSUserPublicDefine.m
View file @
565b9f67
...
@@ -59,15 +59,6 @@
...
@@ -59,15 +59,6 @@
return
@"videoAuthState"
;
return
@"videoAuthState"
;
}
}
// 设置中声音开关
+
(
NSString
*
)
fus_SETTING_SOUND_SWITCH_BOOL
{
return
@"SettingSoundSwitchBool"
;
}
// 设置中振动开关
+
(
NSString
*
)
fus_SETTING_VIBRATE_SWITCH_BOOL
{
return
@"SettingVibrateSwitchBool"
;
}
// 设置中启动语音开关
// 设置中启动语音开关
+
(
NSString
*
)
fus_SETTING_LAUNCH_SOUND_SWITCH_BOOL
{
+
(
NSString
*
)
fus_SETTING_LAUNCH_SOUND_SWITCH_BOOL
{
return
@"SettingLaunchSoundSwitchBool"
;
return
@"SettingLaunchSoundSwitchBool"
;
...
...
FuSiLive/AppDelegate.m
View file @
565b9f67
...
@@ -220,8 +220,9 @@ static NSString *const kGtAppSecret = @"OSSSWqbWY0ACJiUv4AHdW7";
...
@@ -220,8 +220,9 @@ static NSString *const kGtAppSecret = @"OSSSWqbWY0ACJiUv4AHdW7";
BOOL
notFirst
=
[[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
NOT_FIRST_LAUNCH_BOOL
]
boolValue
];
BOOL
notFirst
=
[[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
NOT_FIRST_LAUNCH_BOOL
]
boolValue
];
if
(
!
notFirst
)
{
if
(
!
notFirst
)
{
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
YES
)
forKey
:
NOT_FIRST_LAUNCH_BOOL
];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
YES
)
forKey
:
NOT_FIRST_LAUNCH_BOOL
];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
YES
)
forKey
:
FUSUserUDKeys
.
fus_SETTING_SOUND_SWITCH_BOOL
];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
YES
)
forKey
:
FUSUserUDKeys
.
fus_SETTING_VIBRATE_SWITCH_BOOL
];
[
FUSSoundAndVibrateHelper
setSystemSoundOpen
:
YES
];
[
FUSSoundAndVibrateHelper
setSystemVibrateOpen
:
YES
];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
YES
)
forKey
:
FUSUserUDKeys
.
fus_SETTING_LAUNCH_SOUND_SWITCH_BOOL
];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
YES
)
forKey
:
FUSUserUDKeys
.
fus_SETTING_LAUNCH_SOUND_SWITCH_BOOL
];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
YES
)
forKey
:
kFUSConfigAppStatusUDKey
];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
YES
)
forKey
:
kFUSConfigAppStatusUDKey
];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
YES
)
forKey
:
FUSLiveUDKeys
.
fus_SHOULD_REMOTE_NOTIFICATION_TIP
];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
YES
)
forKey
:
FUSLiveUDKeys
.
fus_SHOULD_REMOTE_NOTIFICATION_TIP
];
...
...
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/ZhaiXin/Recommend/View/FUSZhaiXinSettingPopView.m
View file @
565b9f67
...
@@ -114,17 +114,17 @@
...
@@ -114,17 +114,17 @@
};
};
FUSCustomSettingItem
*
messageSoundItem
=
[
FUSCustomSettingItem
fus_itemWithTitle
:[
NSString
fus_localString
:
@"声音提醒"
]
type
:
CustomSettingItemTypeSwitch
];
FUSCustomSettingItem
*
messageSoundItem
=
[
FUSCustomSettingItem
fus_itemWithTitle
:[
NSString
fus_localString
:
@"声音提醒"
]
type
:
CustomSettingItemTypeSwitch
];
messageSoundItem
.
switchState
=
[
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
FUSUserUDKeys
.
fus_SETTING_SOUND_SWITCH_BOOL
]
boolValue
];
messageSoundItem
.
switchState
=
[
FUSSoundAndVibrateHelper
systemSoundOpen
];
messageSoundItem
.
switchClick
=
^
(
FUSCustomSettingItem
*
item
){
messageSoundItem
.
switchClick
=
^
(
FUSCustomSettingItem
*
item
){
[
FUSTalkingData
fus_trackEvent
:
FUSUserEventTrackParams
.
fus_EVENT_SETTING_NEWSSLERT_SOUNDALERT
];
[
FUSTalkingData
fus_trackEvent
:
FUSUserEventTrackParams
.
fus_EVENT_SETTING_NEWSSLERT_SOUNDALERT
];
[
[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
item
.
currentSwitchState
)
forKey
:
FUSUserUDKeys
.
fus_SETTING_SOUND_SWITCH_BOOL
];
[
FUSSoundAndVibrateHelper
setSystemSoundOpen
:
item
.
currentSwitchState
];
};
};
FUSCustomSettingItem
*
meesageShockItem
=
[
FUSCustomSettingItem
fus_itemWithTitle
:[
NSString
fus_localString
:
@"振动提醒"
]
type
:
CustomSettingItemTypeSwitch
];
FUSCustomSettingItem
*
meesageShockItem
=
[
FUSCustomSettingItem
fus_itemWithTitle
:[
NSString
fus_localString
:
@"振动提醒"
]
type
:
CustomSettingItemTypeSwitch
];
meesageShockItem
.
switchState
=
[
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
FUSUserUDKeys
.
fus_SETTING_VIBRATE_SWITCH_BOOL
]
boolValue
]
;
meesageShockItem
.
switchState
=
[
FUSSoundAndVibrateHelper
systemVibrateOpen
];
;
meesageShockItem
.
switchClick
=
^
(
FUSCustomSettingItem
*
item
){
meesageShockItem
.
switchClick
=
^
(
FUSCustomSettingItem
*
item
){
[
FUSTalkingData
fus_trackEvent
:
FUSUserEventTrackParams
.
fus_EVENT_SETTING_NEWSSLERT_VIBRATEALERT
];
[
FUSTalkingData
fus_trackEvent
:
FUSUserEventTrackParams
.
fus_EVENT_SETTING_NEWSSLERT_VIBRATEALERT
];
[
[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
item
.
currentSwitchState
)
forKey
:
FUSUserUDKeys
.
fus_SETTING_VIBRATE_SWITCH_BOOL
];
[
FUSSoundAndVibrateHelper
setSystemVibrateOpen
:
item
.
currentSwitchState
];
};
};
FUSCustomSettingItem
*
clearAllUnreadItem
=
[
FUSCustomSettingItem
fus_itemWithTitle
:[
NSString
fus_localString
:
@"全部标为已读"
]
type
:
CustomSettingItemTypeShowTextAndArrow
];
FUSCustomSettingItem
*
clearAllUnreadItem
=
[
FUSCustomSettingItem
fus_itemWithTitle
:[
NSString
fus_localString
:
@"全部标为已读"
]
type
:
CustomSettingItemTypeShowTextAndArrow
];
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/Activity/FUSHalfWebView.m
View file @
565b9f67
...
@@ -166,11 +166,10 @@
...
@@ -166,11 +166,10 @@
}
}
_url
=
url
;
_url
=
url
;
NSString
*
mute
=
[[
NSUserDefaults
standardUserDefaults
]
stringForKey
:
FUSUserUDKeys
.
fus_SETTING_SOUND_SWITCH_BOOL
];
if
(
!
[
NSString
isNullWithString
:
FUSLiveHelper
.
shareInstance
.
roomInfoModel
.
roomId
])
{
if
(
!
[
NSString
isNullWithString
:
FUSLiveHelper
.
shareInstance
.
roomInfoModel
.
roomId
])
{
url
=
[
FUSHttpManager
fus_getHttUrl
:
url
params
:@{
@"roomid"
:
FUSLiveHelper
.
shareInstance
.
roomInfoModel
.
roomId
}];
url
=
[
FUSHttpManager
fus_getHttUrl
:
url
params
:@{
@"roomid"
:
FUSLiveHelper
.
shareInstance
.
roomInfoModel
.
roomId
}];
}
}
url
=
[
FUSHttpManager
fus_getHttUrl
:
url
params
:@{
@"sound"
:
mute
}];
url
=
[
FUSHttpManager
fus_getHttUrl
:
url
params
:@{
@"sound"
:
@
([
FUSSoundAndVibrateHelper
systemSoundOpen
])
}];
FUSWKWebViewController
*
wkVC
=
[[
FUSWKWebViewController
alloc
]
init
];
FUSWKWebViewController
*
wkVC
=
[[
FUSWKWebViewController
alloc
]
init
];
wkVC
.
webView
.
clearCache
=
self
.
clearCache
;
wkVC
.
webView
.
clearCache
=
self
.
clearCache
;
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Setting/Controller/FUSSettingViewController.m
View file @
565b9f67
...
@@ -338,17 +338,17 @@
...
@@ -338,17 +338,17 @@
};
};
_messageSoundItem
=
[
FUSCustomSettingItem
fus_itemWithTitle
:[
NSString
fus_localString
:
@"声音提醒"
]
type
:
CustomSettingItemTypeSwitch
];
_messageSoundItem
=
[
FUSCustomSettingItem
fus_itemWithTitle
:[
NSString
fus_localString
:
@"声音提醒"
]
type
:
CustomSettingItemTypeSwitch
];
_messageSoundItem
.
switchState
=
[
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
FUSUserUDKeys
.
fus_SETTING_SOUND_SWITCH_BOOL
]
boolValue
];
_messageSoundItem
.
switchState
=
[
FUSSoundAndVibrateHelper
systemSoundOpen
];
_messageSoundItem
.
switchClick
=
^
(
FUSCustomSettingItem
*
item
){
_messageSoundItem
.
switchClick
=
^
(
FUSCustomSettingItem
*
item
){
[
FUSTalkingData
fus_trackEvent
:
FUSUserEventTrackParams
.
fus_EVENT_SETTING_NEWSSLERT_SOUNDALERT
];
[
FUSTalkingData
fus_trackEvent
:
FUSUserEventTrackParams
.
fus_EVENT_SETTING_NEWSSLERT_SOUNDALERT
];
[
[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
item
.
currentSwitchState
)
forKey
:
FUSUserUDKeys
.
fus_SETTING_SOUND_SWITCH_BOOL
];
[
FUSSoundAndVibrateHelper
setSystemSoundOpen
:
item
.
currentSwitchState
];
};
};
_meesageShockItem
=
[
FUSCustomSettingItem
fus_itemWithTitle
:[
NSString
fus_localString
:
@"振动提醒"
]
type
:
CustomSettingItemTypeSwitch
];
_meesageShockItem
=
[
FUSCustomSettingItem
fus_itemWithTitle
:[
NSString
fus_localString
:
@"振动提醒"
]
type
:
CustomSettingItemTypeSwitch
];
_meesageShockItem
.
switchState
=
[[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
FUSUserUDKeys
.
fus_SETTING_VIBRATE_SWITCH_BOOL
]
boolValue
];
_meesageShockItem
.
switchState
=
[
FUSSoundAndVibrateHelper
systemVibrateOpen
];
_meesageShockItem
.
switchClick
=
^
(
FUSCustomSettingItem
*
item
){
_meesageShockItem
.
switchClick
=
^
(
FUSCustomSettingItem
*
item
){
[
FUSTalkingData
fus_trackEvent
:
FUSUserEventTrackParams
.
fus_EVENT_SETTING_NEWSSLERT_VIBRATEALERT
];
[
FUSTalkingData
fus_trackEvent
:
FUSUserEventTrackParams
.
fus_EVENT_SETTING_NEWSSLERT_VIBRATEALERT
];
[
[
NSUserDefaults
standardUserDefaults
]
setObject
:
@
(
item
.
currentSwitchState
)
forKey
:
FUSUserUDKeys
.
fus_SETTING_VIBRATE_SWITCH_BOOL
];
[
FUSSoundAndVibrateHelper
setSystemVibrateOpen
:
item
.
currentSwitchState
];
};
};
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Zone/View/DailyCheckIn/View/FUSDailyCheckInView.m
View file @
565b9f67
...
@@ -326,7 +326,7 @@
...
@@ -326,7 +326,7 @@
[
self
.
getAwardImageView
setWebImageWithSubURLString
:
model
.
icon
placeholder
:[
FUSUserCenterBunble
imageNamed
:
@"checkIn_placeholder"
]
completion
:^
(
UIImage
*
_Nullable
image
,
NSURL
*
_Nonnull
url
,
YYWebImageFromType
from
,
YYWebImageStage
stage
,
NSError
*
_Nullable
error
)
{
[
self
.
getAwardImageView
setWebImageWithSubURLString
:
model
.
icon
placeholder
:[
FUSUserCenterBunble
imageNamed
:
@"checkIn_placeholder"
]
completion
:^
(
UIImage
*
_Nullable
image
,
NSURL
*
_Nonnull
url
,
YYWebImageFromType
from
,
YYWebImageStage
stage
,
NSError
*
_Nullable
error
)
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
BOOL
soundSwitch
=
[
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
FUSUserUDKeys
.
fus_SETTING_SOUND_SWITCH_BOOL
]
boolValue
];
BOOL
soundSwitch
=
[
FUSSoundAndVibrateHelper
systemSoundOpen
];
if
(
soundSwitch
&&
FUSConfig
.
sharedInstanced
.
liveConfigs
.
isAnchor
==
NO
)
{
if
(
soundSwitch
&&
FUSConfig
.
sharedInstanced
.
liveConfigs
.
isAnchor
==
NO
)
{
[
FUSSoundAndVibrateHelper
playSoundEffect
:
@"check_in_success"
bundle
:[
FUSUserCenterBunble
bundle
]
ofType
:
@"mp3"
];
[
FUSSoundAndVibrateHelper
playSoundEffect
:
@"check_in_success"
bundle
:[
FUSUserCenterBunble
bundle
]
ofType
:
@"mp3"
];
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Zone/View/DailyCheckIn/View/FUSSingleDailyCheckInView.m
View file @
565b9f67
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
completion
:^
(
UIImage
*
_Nullable
image
,
NSURL
*
_Nonnull
url
,
YYWebImageFromType
from
,
YYWebImageStage
stage
,
NSError
*
_Nullable
error
)
{
completion
:^
(
UIImage
*
_Nullable
image
,
NSURL
*
_Nonnull
url
,
YYWebImageFromType
from
,
YYWebImageStage
stage
,
NSError
*
_Nullable
error
)
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
BOOL
soundSwitch
=
[
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
FUSUserUDKeys
.
fus_SETTING_SOUND_SWITCH_BOOL
]
boolValue
];
BOOL
soundSwitch
=
[
FUSSoundAndVibrateHelper
systemSoundOpen
];
if
(
soundSwitch
&&
FUSConfig
.
sharedInstanced
.
liveConfigs
.
isAnchor
==
NO
)
{
if
(
soundSwitch
&&
FUSConfig
.
sharedInstanced
.
liveConfigs
.
isAnchor
==
NO
)
{
[
FUSSoundAndVibrateHelper
playSoundEffect
:
@"check_in_success"
bundle
:[
FUSUserCenterBunble
bundle
]
ofType
:
@"mp3"
];
[
FUSSoundAndVibrateHelper
playSoundEffect
:
@"check_in_success"
bundle
:[
FUSUserCenterBunble
bundle
]
ofType
:
@"mp3"
];
...
...
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