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
5240eced
authored
Jan 16, 2025
by
pierce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bugs
parent
de1d830b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
10 deletions
FuSiLive/AppDelegate.m
FuSiLive/Info.plist
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/Other/FUSIMChatService.m
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/Other/FUSIMUserService.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/AnchorReward/FusAnchorRewardView.m
FuSiLive/AppDelegate.m
View file @
5240eced
...
...
@@ -305,8 +305,6 @@ static NSString *const kGtAppSecret = @"OSSSWqbWY0ACJiUv4AHdW7";
-
(
void
)
application
:(
UIApplication
*
)
application
didRegisterForRemoteNotificationsWithDeviceToken
:(
NSData
*
)
token
{
[
GeTuiSdk
registerDeviceTokenData
:
token
];
NSString
*
driverToken
=
@""
;
if
([[[
UIDevice
currentDevice
]
systemVersion
]
floatValue
]
>=
13
)
{
if
(
!
[
token
isKindOfClass
:[
NSData
class
]])
{
...
...
@@ -352,13 +350,13 @@ static NSString *const kGtAppSecret = @"OSSSWqbWY0ACJiUv4AHdW7";
}
-
(
void
)
GeTuiSdkNotificationCenter
:(
UNUserNotificationCenter
*
)
center
willPresentNotification
:(
UNNotification
*
)
notification
completionHandler
:(
void
(
^
)(
UNNotificationPresentationOptions
))
completionHandler
{
completionHandler
(
UNNotificationPresentationOptionBadge
|
if
(
completionHandler
)
completionHandler
(
UNNotificationPresentationOptionBadge
|
UNNotificationPresentationOptionSound
|
UNNotificationPresentationOptionAlert
);
}
-
(
void
)
GeTuiSdkDidReceiveNotification
:(
NSDictionary
*
)
userInfo
notificationCenter
:(
UNUserNotificationCenter
*
)
center
response
:(
UNNotificationResponse
*
)
response
fetchCompletionHandler
:(
void
(
^
)(
UIBackgroundFetchResult
))
completionHandler
{
completionHandler
(
UIBackgroundFetchResultNoData
);
if
(
completionHandler
)
completionHandler
(
UIBackgroundFetchResultNoData
);
}
-
(
void
)
GeTuiSdkDidReceiveSlience
:(
NSDictionary
*
)
userInfo
fromGetui
:(
BOOL
)
fromGetui
offLine
:(
BOOL
)
offLine
appId
:(
NSString
*
)
appId
taskId
:(
NSString
*
)
taskId
msgId
:(
NSString
*
)
msgId
fetchCompletionHandler
:(
void
(
^
)(
UIBackgroundFetchResult
))
completionHandler
{
...
...
@@ -396,7 +394,7 @@ static NSString *const kGtAppSecret = @"OSSSWqbWY0ACJiUv4AHdW7";
});
completionHandler
(
UIBackgroundFetchResultNoData
);
if
(
completionHandler
)
completionHandler
(
UIBackgroundFetchResultNoData
);
}
...
...
FuSiLive/Info.plist
View file @
5240eced
...
...
@@ -108,12 +108,12 @@
<
/
d
i
c
t
>
<
k
e
y
>
NSCameraUsageDescription
<
/k
e
y
>
<
string
>
開啟直播、聊天分享視頻或反饋舉報等功能,需要访问您的相機權限
<
/string
>
<
k
e
y
>
NSMicrophoneUsageDescription
<
/k
e
y
>
<
string
>
开启直播、聊天錄製視頻分享或反饋舉報等功能,需要访问您的麦克风哦
<
/string
>
<
k
e
y
>
NSLocationAlwaysAndWhenInUseUsageDescription
<
/k
e
y
>
<
string
>
需要获取您的位置,以便发现附近的主播哦
<
/string
>
<
k
e
y
>
NSLocationWhenInUseUsageDescription
<
/k
e
y
>
<
string
>
需要获取您的位置,以便发现附近的主播哦
<
/string
>
<
k
e
y
>
NSMicrophoneUsageDescription
<
/k
e
y
>
<
string
>
开启直播、聊天錄製視頻分享或反饋舉報等功能,需要访问您的麦克风哦
<
/string
>
<
k
e
y
>
NSPhotoLibraryAddUsageDescription
<
/k
e
y
>
<
string
>
保存
APP
內你需要的圖片或視頻,到相冊的功能,需要访问您的相册
<
/string
>
<
k
e
y
>
NSPhotoLibraryUsageDescription
<
/k
e
y
>
...
...
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/Other/FUSIMChatService.m
View file @
5240eced
...
...
@@ -226,11 +226,13 @@
if
([
currentEaseMobKey
isEqualToString
:
FUSConfig
.
sharedInstanced
.
sdkConfigs
.
easeMobTestAppKey
])
{
// 测试服
//TODO:环信证书: added By Pidan
mainOptions
.
apnsCertName
=
@"fireflylive_dev_push.p12"
;
//测试环境推送证书名称
mainOptions
.
apnsCertName
=
@"ft_chat_iOS_for_test_apns.p12"
;
//生产环境推送证书名称
// mainOptions.apnsCertName = @"fireflylive_dev_push.p12"; //测试环境推送证书名称
}
else
if
([
currentEaseMobKey
isEqualToString
:
FUSConfig
.
sharedInstanced
.
sdkConfigs
.
easeMobAppKey
])
{
// 正式服
//TODO:环信证书: added By Pidan
mainOptions
.
apnsCertName
=
@"FusiClub_AppStore_APNs.p12"
;
//生产环境推送证书名称
// mainOptions.apnsCertName = @"ft_chat_iOS_for_test_apns.p12"; //生产环境推送证书名称
}
mainOptions
.
isAutoDownloadThumbnail
=
YES
;
// 是否自动下载图片和视频缩略图及语音消息
...
...
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/Other/FUSIMUserService.m
View file @
5240eced
...
...
@@ -147,6 +147,7 @@
{
[[
EMClient
sharedClient
]
loginWithUsername
:
account
password
:
passWord
completion
:^
(
NSString
*
aUsername
,
EMError
*
aError
)
{
if
(
!
aError
||
aError
.
code
==
200
)
{
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
@"refresh_hyLogin_state"
object
:
nil
];
if
(
success
)
success
();
}
else
{
...
...
@@ -172,6 +173,7 @@
// 更新到最新的会话
[[
FUSIMChatService
shareInstance
]
fus_delayUpdateTalkListToLastMessage
];
[
self
fus_bindAPNsToken
];
});
...
...
@@ -179,7 +181,6 @@
self
.
retryCount
=
0
;
[
self
fus_bindAPNsToken
];
}
failure
:^
(
NSString
*
errorMsg
)
{
// 重试次数加1
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/AnchorReward/FusAnchorRewardView.m
View file @
5240eced
...
...
@@ -103,7 +103,30 @@
self
.
webview
.
webEventHelper
.
webCidEventHandler
=
^
(
NSDictionary
*
info
,
NSInteger
cid
)
{
if
(
cid
==
47
)
{
[
UIView
addAnimationShakeToView
:
weakSelf
];
if
(
weakSelf
.
arrowBtn
.
selected
)
{
[
weakSelf
.
layer
removeAllAnimations
];
// 假设你想对self.view的层应用动画
CALayer
*
layer
=
weakSelf
.
layer
;
// 设置变换原点为层的中心
layer
.
anchorPoint
=
CGPointMake
(
0
.
5
,
0
.
5
);
// 创建基础动画
CABasicAnimation
*
rotationAnimation
=
[
CABasicAnimation
animationWithKeyPath
:
@"transform.rotation.z"
];
rotationAnimation
.
duration
=
0
.
2
;
// 动画持续时间
rotationAnimation
.
repeatCount
=
NSIntegerMax
;
// 无限重复
rotationAnimation
.
autoreverses
=
YES
;
// 自动反转
// 设置从 -角度 到 +角度 的旋转
rotationAnimation
.
fromValue
=
@
(
-
M_PI
/
18
);
// -10度,以弧度为单位
rotationAnimation
.
toValue
=
@
(
M_PI
/
18
);
// +10度,以弧度为单位
// 添加动画到层
[
layer
addAnimation
:
rotationAnimation
forKey
:
@"rotationAnimation"
];
}
}
};
...
...
@@ -164,6 +187,7 @@
}];
// }];
}
else
{
[
self
.
layer
removeAllAnimations
];
self
.
arrowBtn
.
selected
=
NO
;
[
self
.
webview
.
wkWebView
reload
];
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
...
...
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